In Makefile.am, I have:
lib_LTLIBRARIES = libmyproject.la
libmyproject_la_LDFLAGS = -shared
libmyproject_la_SOURCES = \
sample1.cpp \
sample1.h \
sample2.cpp \
sample2.h
AM_CPPFLAGS = \
-Wall \
-Wextra
INCLUDES = \
$(OPENSSL_CFLAGS)
LIBS = \
-L/usr/lib/openssl-1.0.0/ \
-lssl
EXTRA_DIST = xxxxxx
This works fine and I'm getting .lo
and .o
files in the same path.
What can I do to have all .lo
and .o
files moved to a separate subfolder after compilation?