]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/statd/Makefile
Added TOP, as needed, for easier compile in subdirectories
[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 TOP     = ../../
7 # Uncomment for embedded client-side simulation functions.
8 #SIMUL  = -DSIMULATIONS
9
10 # Undefined is normal, defined provides debug logging.
11 #DEBUG  = -DDEBUG
12
13 ##################################################################
14 #       no user-serviceable parts below this line
15 ##################################################################
16 PROGRAM = statd
17 PREFIX  = rpc.
18 OBJS    = $(SRCS:.c=.o)
19 CCOPTS  = $(DEBUG) $(SIMUL)
20 LIBS    = -lexport -lnfs -lmisc $(LIBWRAP) $(LIBNSL)
21
22 SRCS    = $(RPCSRCS) $(SIMSRCS) \
23           callback.c notlist.c log.c misc.c monitor.c notify.c simu.c \
24           stat.c statd.c state.c svc_run.c rmtcall.c
25 HDRS    = $(RPCHDRS) $(SIMHDRS)
26
27 RPCSRCS = sm_inter_clnt.c sm_inter_svc.c sm_inter_xdr.c
28 RPCHDRS = sm_inter.h
29
30 ifdef SIMUL
31 SIMSRCS = sim_sm_inter_clnt.c sim_sm_inter_svc.c
32 SIMHDRS = sim_sm_inter.h
33 SRCS   += simulate.c
34 endif
35
36 MAN8    = statd
37
38 include $(TOP)rules.mk
39
40 AFLAGS  += -Wno-unused
41
42 $(RPCHDRS) $(RPCSRCS):  sm_inter.x
43         $(RM) $(RPCHDRS) $(RPCSRCS)
44         $(RPCGEN) -h -o sm_inter.h $<
45         $(RPCGEN) -l -o sm_inter_clnt.c $<
46         $(RPCGEN) -m -o sm_inter_svc.c $<
47         $(RPCGEN) -c -o sm_inter_xdr.c $<
48
49 $(SIMHDRS) $(SIMSRCS):  sim_sm_inter.x
50         $(RM) $(SIMHDRS) $(SIMSRCS)
51         $(RPCGEN) -h -o sim_sm_inter.h $<
52         $(RPCGEN) -l -o sim_sm_inter_clnt.c $<
53         $(RPCGEN) -m -o sim_sm_inter_svc.c $<
54
55 clean::
56         $(RM) $(PROGRAM)
57
58 distclean::
59         $(RM) $(RPCHDRS) $(RPCSRCS) $(SIMHDRS) $(SIMSRCS)
60
61 predep:: $(RPCHDRS) $(RPCSRCS)