Makefile.am 2.24 KB
Newer Older
's avatar
committed
1
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../common -I$(srcdir)/../bpfcompiler @PCAPINC@ @DAGINC@ @NAPATECHINC@ -D_NT_OS_TYPE=_NT_OS_TYPE_LINUX -D_GNU_SOURCE -D_THREAD_SAFE
2 3 4 5 6 7
libdir = $(pkgdatadir)

if DRIVER_DAG
BUILD_dagdrv = mapidagdrv.la
endif

8 9 10 11
if DRIVER_ENP2611
BUILD_enp2611drv = mapienp2611drv.la
endif

's avatar
committed
12 13 14 15 16
if DRIVER_NAPATECH
BUILD_napatechdrv = mapinapatechdrv.la
endif

lib_LTLIBRARIES = mapinicdrv.la mapivindrv.la $(BUILD_dagdrv) $(BUILD_enp2611drv) $(BUILD_napatechdrv)
's avatar
committed
17

18 19 20
# mapi device drivers are dynamically loadable modules (but not standalone
# libraries for users)
mapinicdrv_la_LDFLAGS = -module
's avatar
committed
21 22 23 24 25
mapinicdrv_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
26
../common/libdebug.la \
's avatar
committed
27 28
../common/libmapilibhandler.la @PCAPLIB@ -lrt 
mapinicdrv_la_SOURCES = mapinicdrv.c mapidlib.c mapidlib.h mapidrv.h
29

's avatar
committed
30 31 32 33 34 35
mapivindrv_la_LDFLAGS = -module
mapivindrv_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
36
../common/libdebug.la \
's avatar
committed
37 38 39 40
../common/libmapilibhandler.la @PCAPLIB@ -lrt 
mapivindrv_la_SOURCES = mapivindrv.c mapidlib.c mapidlib.h mapidrv.h


41
if DRIVER_DAG
's avatar
committed
42 43 44 45 46 47
mapidagdrv_la_LDFLAGS = -module
mapidagdrv_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
48
../common/libmapilibhandler.la \
49
../common/libdebug.la \
50
../bpfcompiler/libbpfcompiler.la @DAGLIB@ -lrt
's avatar
committed
51
mapidagdrv_la_SOURCES = mapidagdrv.c mapidlib.c mapidlib.h mapidrv.h
52
endif
's avatar
committed
53

54 55 56 57 58 59 60
if DRIVER_ENP2611
mapienp2611drv_la_LDFLAGS = -module
mapienp2611drv_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
61
../common/libdebug.la \
62 63 64 65
../common/libmapilibhandler.la -lrt
mapienp2611drv_la_SOURCES = mapienp2611drv.c mapidlib.c mapidlib.h mapidrv.h
endif

's avatar
committed
66 67 68 69 70 71 72 73 74
if DRIVER_NAPATECH
mapinapatechdrv_la_LDFLAGS = -module
mapinapatechdrv_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
../common/libmapilibhandler.la \
../common/libdebug.la \
75
-lrt @NAPATECHLIB@ 
's avatar
committed
76 77 78
mapinapatechdrv_la_SOURCES = mapinapatechdrv.c mapidlib.c mapidlib.h mapidrv.h
endif

's avatar
committed
79
EXTRA_DIST = mapicombo6drv.c