ipc-driver-test: clean up variables in Makefile.am
* AM_CPPFLAGS is for preprocessor flags like '-I' or '-D', * AM_CFLAGS/AM_CXXFLAGS is for C/C++ compiler flags like '-Wall', * AM_LDFLAGS is for linker flags like '-no-undefined', not libraries! * Link ipc-driver-test against libdevice.la, * Do not put $(UHD_CFLAGS) everywhere. Change-Id: Iafd68974c9c613fb4e65a01d076b2c687b716c83
This commit is contained in:
parent
8a4362459d
commit
1ddd727bb4
|
@ -1,9 +1,8 @@
|
||||||
include $(top_srcdir)/Makefile.common
|
include $(top_srcdir)/Makefile.common
|
||||||
|
|
||||||
AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/../common
|
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/../common
|
||||||
AM_CFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS)
|
AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(UHD_CFLAGS)
|
||||||
AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS)
|
AM_CXXFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(UHD_CFLAGS)
|
||||||
AM_LDFLAGS = -lpthread -lrt
|
|
||||||
|
|
||||||
noinst_HEADERS = IPCDevice.h shm.h ipc_shm.h ipc_chan.h ipc_sock.h
|
noinst_HEADERS = IPCDevice.h shm.h ipc_shm.h ipc_chan.h ipc_sock.h
|
||||||
|
|
||||||
|
@ -14,22 +13,22 @@ endif
|
||||||
noinst_LTLIBRARIES = libdevice.la
|
noinst_LTLIBRARIES = libdevice.la
|
||||||
|
|
||||||
libdevice_la_SOURCES = IPCDevice.cpp shm.c ipc_shm.c ipc_chan.c ipc_sock.c
|
libdevice_la_SOURCES = IPCDevice.cpp shm.c ipc_shm.c ipc_chan.c ipc_sock.c
|
||||||
libdevice_la_LIBADD = $(top_builddir)/Transceiver52M/device/common/libdevice_common.la
|
libdevice_la_CPPFLAGS = $(AM_CPPFLAGS) -DIPCMAGIC
|
||||||
libdevice_la_CXXFLAGS = $(AM_CXXFLAGS) -DIPCMAGIC
|
libdevice_la_LIBADD = \
|
||||||
|
$(top_builddir)/Transceiver52M/device/common/libdevice_common.la \
|
||||||
|
-lpthread \
|
||||||
|
-lrt \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
if DEVICE_UHD
|
if DEVICE_UHD
|
||||||
|
|
||||||
bin_PROGRAMS = ipc-driver-test
|
bin_PROGRAMS = ipc-driver-test
|
||||||
#ipc_driver_test_SHORTNAME = drvt
|
#ipc_driver_test_SHORTNAME = drvt
|
||||||
ipc_driver_test_SOURCES = ipc-driver-test.c uhdwrap.cpp ipc_shm.c ipc_chan.c ipc_sock.c ../uhd/UHDDevice.cpp
|
ipc_driver_test_SOURCES = ipc-driver-test.c uhdwrap.cpp ../uhd/UHDDevice.cpp
|
||||||
ipc_driver_test_LDADD = \
|
ipc_driver_test_LDADD = \
|
||||||
shm.lo \
|
libdevice.la \
|
||||||
$(top_builddir)/Transceiver52M/device/common/libdevice_common.la \
|
$(COMMON_LA) \
|
||||||
$(COMMON_LA)
|
|
||||||
$(LIBOSMOCORE_LIBS) \
|
$(LIBOSMOCORE_LIBS) \
|
||||||
|
$(UHD_LIBS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
ipc_driver_test_CXXFLAGS = $(AM_CXXFLAGS) $(UHD_CFLAGS)
|
|
||||||
ipc_driver_test_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS)
|
|
||||||
ipc_driver_test_CFLAGS = $(AM_CFLAGS) $(UHD_CFLAGS)
|
|
||||||
ipc_driver_test_LDFLAGS = $(AM_LDFLAGS) $(UHD_LIBS)
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue