source: rtems/cpukit/librpc/Makefile.am @ 9e7e53bf

4.104.114.84.9
Last change on this file since 9e7e53bf was 9e7e53bf, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2003 at 8:01:23 AM

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

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