source: rtems/cpukit/librpc/Makefile.am @ de48a0ea

4.104.114.84.95
Last change on this file since de48a0ea was de48a0ea, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2003 at 5:35:46 PM

2003-11-30 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add $(dirstamp) to compilation rules.
  • Property mode set to 100644
File size: 6.7 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7include $(top_srcdir)/automake/lib.am
8
9if LIBRPC
10include_rpcdir = $(includedir)/rpc
11include_rpc_HEADERS = include/rpc/auth.h include/rpc/auth_des.h \
12    include/rpc/auth_unix.h include/rpc/clnt.h include/rpc/des.h \
13    include/rpc/des_crypt.h include/rpc/pmap_clnt.h include/rpc/pmap_prot.h \
14    include/rpc/pmap_rmt.h include/rpc/rpc.h include/rpc/rpc_com.h \
15    include/rpc/rpc_msg.h include/rpc/svc.h include/rpc/svc_auth.h \
16    include/rpc/types.h include/rpc/xdr.h
17
18man_MANS =
19#endif
20
21libxdr_C_FILES = src/xdr/xdr.c src/xdr/xdr_array.c src/xdr/xdr_float.c \
22    src/xdr/xdr_mem.c src/xdr/xdr_rec.c src/xdr/xdr_reference.c \
23    src/xdr/xdr_sizeof.c src/xdr/xdr_stdio.c
24
25CLEANDIRS = src/xdr
26
27EXTRA_DIST = $(libxdr_C_FILES)
28
29if LIBRPC
30libxdr_C_O_FILES = \
31    $(libxdr_C_FILES:src/xdr/%.c=src/xdr/$(ARCH)/%.$(OBJEXT))
32
33libxdr_OBJS = $(libxdr_C_O_FILES)
34
35src/xdr/$(ARCH)/$(dirstamp):
36        @$(mkinstalldirs) src/xdr/$(ARCH)
37        @: > src/xdr/$(ARCH)/$(dirstamp)
38src/xdr/$(ARCH)/%.$(OBJEXT): src/xdr/%.c src/xdr/$(ARCH)/$(dirstamp)
39        ${COMPILE} -o $@ -c $<
40src/xdr/$(ARCH)/libxdr.a: $(libxdr_OBJS)
41        $(make-library)
42
43man_MANS += src/xdr/xdr.3
44all-local: src/xdr/$(ARCH)/libxdr.a
45endif
46
47librpc_C_FILES = src/rpc/auth_none.c src/rpc/auth_unix.c \
48    src/rpc/authunix_prot.c src/rpc/bindresvport.c src/rpc/clnt_generic.c \
49    src/rpc/clnt_perror.c src/rpc/clnt_raw.c src/rpc/clnt_simple.c \
50    src/rpc/clnt_tcp.c src/rpc/clnt_udp.c src/rpc/get_myaddress.c \
51    src/rpc/getrpcent.c src/rpc/getrpcport.c src/rpc/netname.c \
52    src/rpc/netnamer.c src/rpc/pmap_clnt.c src/rpc/pmap_getmaps.c \
53    src/rpc/pmap_getport.c src/rpc/pmap_prot.c src/rpc/pmap_prot2.c \
54    src/rpc/pmap_rmt.c src/rpc/rpc_callmsg.c src/rpc/rpc_commondata.c \
55    src/rpc/rpc_dtablesize.c src/rpc/rpc_prot.c src/rpc/rpcdname.c \
56    src/rpc/rtime.c src/rpc/svc.c src/rpc/svc_auth.c src/rpc/svc_auth_unix.c \
57    src/rpc/svc_raw.c src/rpc/svc_run.c src/rpc/svc_simple.c \
58    src/rpc/svc_tcp.c src/rpc/svc_udp.c src/rpc/rtems_portmapper.c \
59    src/rpc/rtems_rpc.c
60librpc_UNUSED_C_FILES = src/rpc/auth_des.c src/rpc/auth_time.c \
61    src/rpc/authdes_prot.c src/rpc/clnt_unix.c src/rpc/crypt_client.c \
62    src/rpc/des_crypt.c src/rpc/des_soft.c src/rpc/getpublickey.c \
63    src/rpc/key_call.c src/rpc/key_prot_xdr.c src/rpc/svc_auth_des.c \
64    src/rpc/svc_unix.c
65
66if LIBRPC
67librpc_C_O_FILES = \
68    $(librpc_C_FILES:src/rpc/%.c=src/rpc/$(ARCH)/%.$(OBJEXT))
69
70librpc_OBJS = $(librpc_C_O_FILES)
71
72librpc_a_CPPFLAGS = -D_RPC_read=read -D_RPC_write=write -D_RPC_close=close \
73    -D_RTEMS_RPC_INTERNAL_
74
75src/rpc/$(ARCH)/$(dirstamp):
76        @$(mkinstalldirs) src/rpc/$(ARCH)
77        @: > src/rpc/$(ARCH)/$(dirstamp)
78src/rpc/$(ARCH)/%.$(OBJEXT): src/rpc/%.c src/rpc/$(ARCH)/$(dirstamp)
79        ${COMPILE} $(librpc_a_CPPFLAGS) -o $@ -c $<
80src/rpc/$(ARCH)/librpc.a: $(librpc_OBJS)
81        $(make-library)
82
83man_MANS += src/rpc/bindresvport.3 src/rpc/getrpcent.3 src/rpc/publickey.3 \
84    src/rpc/rpc.3 src/rpc/rpc_secure.3 src/rpc/rstat_svc.8 \
85    src/rpc/des_crypt.3 src/rpc/getrpcport.3 src/rpc/publickey.5 \
86    src/rpc/rpc.5 src/rpc/rstat.1 src/rpc/rtime.3
87
88all-local: src/rpc/$(ARCH)/librpc.a
89endif
90
91CLEANDIRS += src/rpc
92
93EXTRA_DIST += $(librpc_C_FILES) src/rpc/DISCLAIMER $(librpc_UNUSED_C_FILES)
94
95EXTRA_DIST += src/rpc/PSD.doc/nfs.rfc.ms src/rpc/PSD.doc/rpc.prog.ms \
96    src/rpc/PSD.doc/rpc.rfc.ms src/rpc/PSD.doc/rpcgen.ms \
97    src/rpc/PSD.doc/xdr.nts.ms src/rpc/PSD.doc/xdr.rfc.ms
98endif
99
100PREINSTALL_FILES =
101
102if LIBRPC
103$(PROJECT_INCLUDE)/rpc/$(dirstamp):
104        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rpc
105        @: > $(PROJECT_INCLUDE)/rpc/$(dirstamp)
106PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/$(dirstamp)
107
108$(PROJECT_INCLUDE)/rpc/auth.h: include/rpc/auth.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
109        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/auth.h
110PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth.h
111
112$(PROJECT_INCLUDE)/rpc/auth_des.h: include/rpc/auth_des.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
113        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/auth_des.h
114PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth_des.h
115
116$(PROJECT_INCLUDE)/rpc/auth_unix.h: include/rpc/auth_unix.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
117        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/auth_unix.h
118PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth_unix.h
119
120$(PROJECT_INCLUDE)/rpc/clnt.h: include/rpc/clnt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
121        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/clnt.h
122PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/clnt.h
123
124$(PROJECT_INCLUDE)/rpc/des.h: include/rpc/des.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
125        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/des.h
126PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/des.h
127
128$(PROJECT_INCLUDE)/rpc/des_crypt.h: include/rpc/des_crypt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
129        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/des_crypt.h
130PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/des_crypt.h
131
132$(PROJECT_INCLUDE)/rpc/pmap_clnt.h: include/rpc/pmap_clnt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
133        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/pmap_clnt.h
134PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_clnt.h
135
136$(PROJECT_INCLUDE)/rpc/pmap_prot.h: include/rpc/pmap_prot.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
137        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/pmap_prot.h
138PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_prot.h
139
140$(PROJECT_INCLUDE)/rpc/pmap_rmt.h: include/rpc/pmap_rmt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
141        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/pmap_rmt.h
142PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_rmt.h
143
144$(PROJECT_INCLUDE)/rpc/rpc.h: include/rpc/rpc.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
145        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/rpc.h
146PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc.h
147
148$(PROJECT_INCLUDE)/rpc/rpc_com.h: include/rpc/rpc_com.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
149        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/rpc_com.h
150PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc_com.h
151
152$(PROJECT_INCLUDE)/rpc/rpc_msg.h: include/rpc/rpc_msg.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
153        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/rpc_msg.h
154PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc_msg.h
155
156$(PROJECT_INCLUDE)/rpc/svc.h: include/rpc/svc.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
157        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/svc.h
158PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/svc.h
159
160$(PROJECT_INCLUDE)/rpc/svc_auth.h: include/rpc/svc_auth.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
161        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/svc_auth.h
162PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/svc_auth.h
163
164$(PROJECT_INCLUDE)/rpc/types.h: include/rpc/types.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
165        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/types.h
166PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/types.h
167
168$(PROJECT_INCLUDE)/rpc/xdr.h: include/rpc/xdr.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
169        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/xdr.h
170PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/xdr.h
171
172endif
173
174include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.