Makefile.am 1.72 KB
Newer Older
's avatar
committed
1
AM_CPPFLAGS = -I$(srcdir)/lib -I$(srcdir)/common -I$(srcdir)/drivers -D_GNU_SOURCE -D_THREAD_SAFE
2
3
4
5

if BINARY_TRACKFLIB
BUILD_trackflib = trackflib
endif
's avatar
   
committed
6
7
8
if BINARY_RULERFLIB
BUILD_rulerflib = rulerflib
endif
9
10
11
12
13
14
15
16
if BINARY_IPFIXFLIB
BUILD_ipfixflib = ipfixflib
endif
if BINARY_ANONFLIB
BUILD_anonflib = anonflib
endif
if BINARY_DAGFLIB
BUILD_dagflib = dagflib
17
BUILD_bpfcompiler = bpfcompiler 
18
endif
's avatar
   
committed
19
20
21
if BINARY_NAPATECHFLIB
BUILD_napatechflib = napatechflib
endif
22
23
24
if BINARY_EXTRAFLIB
BUILD_extraflib = extraflib
endif
25
26

# common must be built first
27
SUBDIRS = common lib $(BUILD_bpfcompiler) drivers stdflib \
28
$(BUILD_trackflib) \
's avatar
   
committed
29
$(BUILD_rulerflib) \
30
31
$(BUILD_ipfixflib) \
$(BUILD_anonflib) \
32
$(BUILD_dagflib) \
's avatar
   
committed
33
$(BUILD_napatechflib) \
34
$(BUILD_extraflib)
35
36
37
38
39
40
41
42
#DIST_SUBDIRS = 

if BINARY_DIMAPI
BUILD_mapicommd = mapicommd
endif

sbin_PROGRAMS = mapid $(BUILD_mapicommd)

's avatar
committed
43
44
45
46
mapid_LDADD = \
common/libflist.la \
common/libmapiipc.la \
common/libparseconf.la \
47
common/libprintfstring.la -lpthread -ldl \
48
49
50
common/libdevgroupdb.la \
common/libdebug.la \
common/liblog.la
's avatar
committed
51
mapid_SOURCES = mapid.c mapid.h mapidevices.h debug.h
52
53

if BINARY_DIMAPI
's avatar
committed
54
55
56
57
58
59
60
mapicommd_LDADD = \
common/libmapiipc.la \
common/libmapilibhandler.la \
common/libfhelp.la \
common/libflist.la \
common/libparseconf.la \
common/libprintfstring.la \
61
common/libdevgroupdb.la \
62
63
64
lib/libmapi.la -lpthread \
common/libdebug.la \
common/liblog.la
65
66
67
68
mapicommd_SOURCES = mapicommd.c
endif


's avatar
committed
69
70
71
72
73
EXTRA_DIST = errors.mapi combo6flib vod

dist-hook:
	rm -rf `find $(distdir)/combo6flib -name .svn`
	rm -rf `find $(distdir)/vod -name .svn`
74
75
76

# if installing as root, create a mapi user group
install-exec-hook:
77
	@if test `whoami` = root; then \
's avatar
committed
78
79
80
		if $(GROUPADD) -f ${MAPI_GROUP}; then\
			echo "Created user group '${MAPI_GROUP}'"; \
		fi \
81
	fi