Debian Codegraph @

rpc.rusersd/Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 all: rusersd
2 include ../MCONFIG
3 include ../MRULES
4
5 ifeq ($(USE_GLIBC),1)
6 CFLAGS += -DGNU_LIBC -D_GNU_SOURCE -D_NO_UT_TIME
7 endif
8
9
10 # .if exists(/usr/include/X11/extensions/xidle.h)
11 #CFLAGS+= -DXIDLE
12 #LDADD+= -L/usr/X386/lib -lXext -lX11
13 # .endif
14
15 RPCGEN=rpcgen
16
17 # Warning, do not put this in the current directory without updating
18 # the clean target.
19 RUSERSX=/usr/include/rpcsvc/rusers.x
20
21 rusersd: rusersd.o rusers_proc.o rusers_xdr.o daemon.o
22 $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
23
24 install: rusersd
25 install -s -m$(DAEMONMODE) rusersd $(INSTALLROOT)$(SBINDIR)/rpc.rusersd
26 install -m$(MANMODE) rpc.rusersd.8 $(INSTALLROOT)$(MANDIR)/man8
27 ln -sf rpc.rusersd.8 $(INSTALLROOT)$(MANDIR)/man8/rusersd.8
28
29 clean:
30 rm -f *.o rusersd rusers.h rusers_xdr.c rusers.x
31
32 rusersd.o: ../version.h
33 rusersd.o rusers_proc.o: rusers.h
34 rusers_xdr.o: rusers_xdr.c rusers.h
35
36 # see rusers makefile for an explanation of why this is necessary
37 rusers.x:
38 ln -s $(RUSERSX) rusers.x
39
40 rusers.h: $(RUSERSX) rusers.x
41 $(RPCGEN) -h -o rusers.h rusers.x
42
43 rusers_xdr.c: $(RUSERSX)
44 $(RPCGEN) -c -C -o rusers_xdr.c rusers.x