title: How to link multiple .so files in a C++ Makefile
body: <p>My Makefile looks as follows:</p>
  
  <pre><code>CXX = g++
  CXXFLAGS = -g
  
  INCLUDES = -Iinclude/
  
  OBJS = a1.o \
     b1.o
  
  LIBPATH= /usr/lib/&lt;arch&gt;
  
  test-app:$(OBJS)
  $(CXX) -o $@ $(OBJS)
  
  %.o : %.cpp
  $(CXX) $(INCLUDES) -c $(CXXFLAGS) $&lt; -o $@
  </code></pre>
  
  <p>I want to link two files lib1.so and lib2.so present in LIBPATH? Can anyone please help me with the syntax?</p>