-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
59 lines (47 loc) · 1.09 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
AM_CPPFLAGS = \
-DCHECK_LOCAL \
-DPORTMAP \
-DFACILITY=LOG_MAIL \
-DSEVERITY=LOG_INFO \
-DINET6 \
-DRPCBIND_STATEDIR="\"$(statedir)\"" \
-DRPCUSER="\"$(rpcuser)\"" \
-D_GNU_SOURCE \
$(TIRPC_CFLAGS)
if DEBUG
AM_CPPFLAGS += -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL
AM_CPPFLAGS += -DND_DEBUG -DBIND_DEBUG
endif
if WARMSTART
AM_CPPFLAGS += -DWARMSTART
endif
if LIBWRAP
AM_CPPFLAGS += -DLIBWRAP
endif
bin_PROGRAMS = rpcbind rpcinfo
rpcbind_SOURCES = \
src/check_bound.c \
src/pmap_svc.c \
src/rpcb_stat.c \
src/rpcb_svc.c \
src/rpcb_svc_4.c \
src/rpcb_svc_com.c \
src/rpcbind.c \
src/rpcbind.h \
src/security.c \
src/util.c \
src/warmstart.c
rpcbind_LDADD = $(TIRPC_LIBS)
if SYSTEMD
AM_CPPFLAGS += $(SYSTEMD_CFLAGS) -DSYSTEMD
rpcbind_LDADD += $(SYSTEMD_LIBS)
systemd/rpcbind.service: systemd/rpcbind.service.in Makefile
sed -e 's,@bindir\@,$(bindir),g' \
< $< > $@ || rm $@
systemdsystemunit_DATA = \
systemd/rpcbind.service \
systemd/rpcbind.socket
endif
rpcinfo_SOURCES = src/rpcinfo.c
rpcinfo_LDADD = $(TIRPC_LIBS)
dist_man8_MANS = man/rpcbind.8 man/rpcinfo.8