NULL = AM_CFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/samsung-ipc \ $(OPENSSL_CFLAGS) \ $(NULL) if WANT_DEBUG AM_CFLAGS += -ggdb -O0 -DDEBUG endif lib_LTLIBRARIES = \ libsamsung-ipc.la \ $(NULL) libsamsung_ipc_la_SOURCES = \ $(NULL) include $(top_srcdir)/samsung-ipc/common/Makefile.am include $(top_srcdir)/samsung-ipc/devices/Makefile.am include $(top_srcdir)/samsung-ipc/modems/Makefile.am include $(top_srcdir)/samsung-ipc/partitions/Makefile.am libsamsung_ipc_la_LIBADD = \ $(OPENSSL_LIBS) \ $(NULL) # As we reuse $(libsamsung_ipc_la_SOURCES) in the libsamsung-ipc-test test # program, we need to tell the autotools to separate the libsamsung-ipc and # libsamsung-ipc-test .o, otherwise libsamsung-ipc' .o will be linked # directoy in libsamsung-ipc-test. # As they need to be compiled with different options, this is an issue. # Without that we might have errors like this one during autogen.sh: # error: object 'ipc.$(OBJEXT)' created both with libtool and without libsamsung_ipc_CPPFLAGS = ${AM_CPPFLAGS}