-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
67 lines (50 loc) · 1.29 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = . test
COMMON_LIBS = \
$(LIBUCL_LIBS) \
$(URCL_LIBS) \
@EXTRALIBS@
AM_LDFLAGS = \
@LDFLAGS@ \
@LDAP_LDFLAGS@
AM_CPPFLAGS = \
@CPPFLAGS@ \
$(LIBUCL_CFLAGS) \
$(URCL_CFLAGS) \
@CMOCKA_CFLAGS@ \
@LDAP_CPPFLAGS@
bin_PROGRAMS = simvacation simunvacation
noinst_PROGRAMS = genimbed
COMMON_FILES = \
rabin.h rabin.c \
yasl.h yasl.c \
vdb.h vdb.c \
vlu.h vlu.c \
vutil.h vutil.c \
simvacation.h
if BUILD_CMOCKA
check_PROGRAMS = test/cmocka_vutil
test_cmocka_vutil_SOURCES = test/unit_vutil.c vutil.c vutil.h yasl.c yasl.h
test_cmocka_vutil_LDADD = $(COMMON_LIBS) @CMOCKA_LIBS@
endif
if BUILD_LDAP
COMMON_FILES += vlu_ldap.c
endif
if BUILD_LMDB
COMMON_FILES += vdb_lmdb.c
endif
if BUILD_REDIS
COMMON_FILES += vdb_redis.c
endif
BUILT_SOURCES = embedded_config.h
genimbed_SOURCES = genimbed.c
genimbed_LDADD = $(COMMON_LIBS)
simvacation_SOURCES = simvacation.c $(COMMON_FILES)
simvacation_LDADD = $(COMMON_LIBS)
simunvacation_SOURCES = simunvacation.c $(COMMON_FILES)
simunvacation_LDADD = $(COMMON_LIBS)
EXTRA_DIST = COPYING.yasl VERSION simvacation.conf packaging/rpm/simvacation.spec
embedded_config.h: genimbed$(EXEEXT) simvacation.conf Makefile
./genimbed$(EXEEXT) simvacation.conf CONFIG_BASE > embedded_config.h
rpm: dist-xz
rpmbuild -ta $(distdir).tar.xz