Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 1 | include $(top_srcdir)/Makefile.common |
| 2 | |
| 3 | AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/../common |
Vadim Yanitskiy | 24cb0c9 | 2020-10-24 06:43:27 +0700 | [diff] [blame] | 4 | AM_CFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) |
| 5 | AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 6 | AM_LDFLAGS = -lpthread -lrt |
| 7 | |
| 8 | noinst_HEADERS = IPCDevice.h shm.h ipc_shm.h ipc_chan.h ipc_sock.h |
| 9 | |
| 10 | if DEVICE_UHD |
| 11 | noinst_HEADERS += ../uhd/UHDDevice.h uhdwrap.h ipc-driver-test.h |
| 12 | endif |
| 13 | |
| 14 | noinst_LTLIBRARIES = libdevice.la |
| 15 | |
| 16 | libdevice_la_SOURCES = IPCDevice.cpp shm.c ipc_shm.c ipc_chan.c ipc_sock.c |
| 17 | libdevice_la_LIBADD = $(top_builddir)/Transceiver52M/device/common/libdevice_common.la |
| 18 | libdevice_la_CXXFLAGS = $(AM_CXXFLAGS) -DIPCMAGIC |
| 19 | |
Harald Welte | e2404f4 | 2021-02-28 10:52:10 +0100 | [diff] [blame] | 20 | if DEVICE_UHD |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 21 | |
| 22 | bin_PROGRAMS = ipc-driver-test |
| 23 | #ipc_driver_test_SHORTNAME = drvt |
Eric | 2ca77d7 | 2022-12-23 15:36:35 +0100 | [diff] [blame^] | 24 | ipc_driver_test_SOURCES = ipc-driver-test.c uhdwrap.cpp ipc_shm.c ipc_chan.c ipc_sock.c ../uhd/UHDDevice.cpp |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 25 | ipc_driver_test_LDADD = \ |
| 26 | shm.lo \ |
Pau Espin Pedrol | c7930b0 | 2021-03-01 16:23:46 +0100 | [diff] [blame] | 27 | $(top_builddir)/Transceiver52M/device/common/libdevice_common.la \ |
| 28 | $(COMMON_LA) |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 29 | $(LIBOSMOCORE_LIBS) \ |
Vadim Yanitskiy | 24cb0c9 | 2020-10-24 06:43:27 +0700 | [diff] [blame] | 30 | $(NULL) |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 31 | ipc_driver_test_CXXFLAGS = $(AM_CXXFLAGS) $(UHD_CFLAGS) |
| 32 | ipc_driver_test_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS) |
| 33 | ipc_driver_test_CFLAGS = $(AM_CFLAGS) $(UHD_CFLAGS) |
| 34 | ipc_driver_test_LDFLAGS = $(AM_LDFLAGS) $(UHD_LIBS) |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 35 | endif |