]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/statd/Makefile
2001-03-11 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / utils / statd / Makefile
1 # Copyright (C) 1995-1999 Jeffrey A. Uphoff
2 # Adapted for linux-nfs build tree by Olaf Kirch, 1996.
3 #
4 # NSM for Linux.
5
6 # Uncomment for embedded client-side simulation functions.
7 #SIMUL  = -DSIMULATIONS
8
9 # Undefined is normal, defined provides debug logging.
10 #DEBUG  = -DDEBUG
11
12 ##################################################################
13 #       no user-serviceable parts below this line
14 ##################################################################
15 PROGRAM = statd
16 PREFIX  = rpc.
17 OBJS    = $(SRCS:.c=.o)
18 CCOPTS  = $(DEBUG) $(SIMUL)
19 LIBS    = -lexport -lmisc $(LIBWRAP) $(LIBNSL)
20
21 SRCS    = $(RPCSRCS) $(SIMSRCS) \
22           callback.c notlist.c log.c misc.c monitor.c notify.c simu.c \
23           stat.c statd.c state.c svc_run.c rmtcall.c
24 HDRS    = $(RPCHDRS) $(SIMHDRS)
25
26 RPCSRCS = sm_inter_clnt.c sm_inter_svc.c sm_inter_xdr.c
27 RPCHDRS = sm_inter.h
28
29 ifdef SIMUL
30 SIMSRCS = sim_sm_inter_clnt.c sim_sm_inter_svc.c
31 SIMHDRS = sim_sm_inter.h
32 SRCS   += simulate.c
33 endif
34
35 MAN8    = statd
36
37 include $(TOP)rules.mk
38
39 AFLAGS  += -Wno-unused
40
41 $(RPCHDRS) $(RPCSRCS):  sm_inter.x
42         $(RM) $(RPCHDRS) $(RPCSRCS)
43         $(RPCGEN) -h -o sm_inter.h $<
44         $(RPCGEN) -l -o sm_inter_clnt.c $<
45         $(RPCGEN) -m -o sm_inter_svc.c $<
46         $(RPCGEN) -c -o sm_inter_xdr.c $<
47
48 $(SIMHDRS) $(SIMSRCS):  sim_sm_inter.x
49         $(RM) $(SIMHDRS) $(SIMSRCS)
50         $(RPCGEN) -h -o sim_sm_inter.h $<
51         $(RPCGEN) -l -o sim_sm_inter_clnt.c $<
52         $(RPCGEN) -m -o sim_sm_inter_svc.c $<
53
54 clean::
55         $(RM) $(PROGRAM)
56
57 distclean::
58         $(RM) $(RPCHDRS) $(RPCSRCS) $(SIMHDRS) $(SIMSRCS)