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

4.104.114.84.9
Last change on this file since b2b143f4 was 3d1de20, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 19, 2004 at 7:29:05 AM

2004-01-19 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add PREINSTALL_DIRS.
  • Property mode set to 100644
File size: 7.4 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8EXTRA_DIST =
9CLEANFILES =
10
11if LIBRPC
12include_rpcdir = $(includedir)/rpc
13include_rpc_HEADERS = include/rpc/auth.h include/rpc/auth_des.h \
14    include/rpc/auth_unix.h include/rpc/clnt.h include/rpc/des.h \
15    include/rpc/des_crypt.h include/rpc/pmap_clnt.h include/rpc/pmap_prot.h \
16    include/rpc/pmap_rmt.h include/rpc/rpc.h include/rpc/rpc_com.h \
17    include/rpc/rpc_msg.h include/rpc/svc.h include/rpc/svc_auth.h \
18    include/rpc/types.h include/rpc/xdr.h
19
20man_MANS =
21
22EXTRA_LIBRARIES = libxdr.a
23CLEANFILES += libxdr.a
24libxdr_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
25
26EXTRA_LIBRARIES += libxdr_g.a
27CLEANFILES += libxdr_g.a
28libxdr_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
29
30libxdr_a_SOURCES = src/xdr/xdr.c src/xdr/xdr_array.c src/xdr/xdr_float.c \
31    src/xdr/xdr_mem.c src/xdr/xdr_rec.c src/xdr/xdr_reference.c \
32    src/xdr/xdr_sizeof.c src/xdr/xdr_stdio.c
33libxdr_g_a_SOURCES = $(libxdr_a_SOURCES)
34endif
35
36libxdr_mans = src/xdr/xdr.3
37EXTRA_DIST += $(libxdr_mans)
38
39if LIBRPC
40man_MANS += $(libxdr_mans)
41
42all-local: libxdr$(LIB_VARIANT).a
43
44EXTRA_LIBRARIES += librpc.a
45CLEANFILES += librpc.a
46librpc_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) $(librpc_CPPFLAGS)
47
48EXTRA_LIBRARIES += librpc_g.a
49CLEANFILES += librpc_g.a
50librpc_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) $(librpc_CPPFLAGS)
51
52librpc_a_SOURCES = src/rpc/auth_none.c src/rpc/auth_unix.c \
53    src/rpc/authunix_prot.c src/rpc/bindresvport.c src/rpc/clnt_generic.c \
54    src/rpc/clnt_perror.c src/rpc/clnt_raw.c src/rpc/clnt_simple.c \
55    src/rpc/clnt_tcp.c src/rpc/clnt_udp.c src/rpc/get_myaddress.c \
56    src/rpc/getrpcent.c src/rpc/getrpcport.c src/rpc/netname.c \
57    src/rpc/netnamer.c src/rpc/pmap_clnt.c src/rpc/pmap_getmaps.c \
58    src/rpc/pmap_getport.c src/rpc/pmap_prot.c src/rpc/pmap_prot2.c \
59    src/rpc/pmap_rmt.c src/rpc/rpc_callmsg.c src/rpc/rpc_commondata.c \
60    src/rpc/rpc_dtablesize.c src/rpc/rpc_prot.c src/rpc/rpcdname.c \
61    src/rpc/rtime.c src/rpc/svc.c src/rpc/svc_auth.c src/rpc/svc_auth_unix.c \
62    src/rpc/svc_raw.c src/rpc/svc_run.c src/rpc/svc_simple.c \
63    src/rpc/svc_tcp.c src/rpc/svc_udp.c src/rpc/rtems_portmapper.c \
64    src/rpc/rtems_rpc.c
65# librpc_UNUSED_C_FILES
66EXTRA_DIST += src/rpc/auth_des.c src/rpc/auth_time.c src/rpc/authdes_prot.c \
67    src/rpc/clnt_unix.c src/rpc/crypt_client.c src/rpc/des_crypt.c \
68    src/rpc/des_soft.c src/rpc/getpublickey.c src/rpc/key_call.c \
69    src/rpc/key_prot_xdr.c src/rpc/svc_auth_des.c src/rpc/svc_unix.c
70librpc_g_a_SOURCES = $(librpc_a_SOURCES)
71
72librpc_CPPFLAGS = -D_RPC_read=read -D_RPC_write=write -D_RPC_close=close \
73    -D_RTEMS_RPC_INTERNAL_
74endif
75
76librpc_mans = src/rpc/bindresvport.3 src/rpc/getrpcent.3 src/rpc/publickey.3 \
77    src/rpc/rpc.3 src/rpc/rpc_secure.3 src/rpc/rstat_svc.8 \
78    src/rpc/des_crypt.3 src/rpc/getrpcport.3 src/rpc/publickey.5 \
79    src/rpc/rpc.5 src/rpc/rstat.1 src/rpc/rtime.3
80EXTRA_DIST += $(librpc_mans)
81
82if LIBRPC
83man_MANS += $(librpc_mans)
84
85all-local: librpc$(LIB_VARIANT).a
86endif
87
88EXTRA_DIST += src/rpc/DISCLAIMER src/rpc/README
89
90EXTRA_DIST += src/rpc/PSD.doc/nfs.rfc.ms src/rpc/PSD.doc/rpc.prog.ms \
91    src/rpc/PSD.doc/rpc.rfc.ms src/rpc/PSD.doc/rpcgen.ms \
92    src/rpc/PSD.doc/xdr.nts.ms src/rpc/PSD.doc/xdr.rfc.ms
93EXTRA_DIST += README_RTEMS
94
95## FIXME: Unused
96EXTRA_DIST += include/rpcsvc/bootparam_prot.x include/rpcsvc/crypt.x \
97    include/rpcsvc/key_prot.x include/rpcsvc/klm_prot.x \
98    include/rpcsvc/mount.x include/rpcsvc/nfs_prot.x \
99    include/rpcsvc/nis_cache.x include/rpcsvc/nis_callback.x \
100    include/rpcsvc/nis_db.h include/rpcsvc/nislib.h \
101    include/rpcsvc/nis_object.x include/rpcsvc/nis_tags.h \
102    include/rpcsvc/nis.x include/rpcsvc/nlm_prot.x \
103    include/rpcsvc/pmap_prot.x include/rpcsvc/rex.x include/rpcsvc/rnusers.x \
104    include/rpcsvc/rquota.x include/rpcsvc/rstat.x include/rpcsvc/rwall.x \
105    include/rpcsvc/sm_inter.x include/rpcsvc/spray.x include/rpcsvc/ypclnt.h \
106    include/rpcsvc/yppasswd.x include/rpcsvc/yp_prot.h \
107    include/rpcsvc/ypupdate_prot.x include/rpcsvc/yp.x \
108    include/rpcsvc/ypxfrd.x
109
110PREINSTALL_DIRS =
111PREINSTALL_FILES =
112
113if LIBRPC
114$(PROJECT_INCLUDE)/rpc/$(dirstamp):
115        @$(mkdir_p) $(PROJECT_INCLUDE)/rpc
116        @: > $(PROJECT_INCLUDE)/rpc/$(dirstamp)
117PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rpc/$(dirstamp)
118
119$(PROJECT_INCLUDE)/rpc/auth.h: include/rpc/auth.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
120        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/auth.h
121PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth.h
122
123$(PROJECT_INCLUDE)/rpc/auth_des.h: include/rpc/auth_des.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
124        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/auth_des.h
125PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth_des.h
126
127$(PROJECT_INCLUDE)/rpc/auth_unix.h: include/rpc/auth_unix.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
128        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/auth_unix.h
129PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth_unix.h
130
131$(PROJECT_INCLUDE)/rpc/clnt.h: include/rpc/clnt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
132        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/clnt.h
133PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/clnt.h
134
135$(PROJECT_INCLUDE)/rpc/des.h: include/rpc/des.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
136        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/des.h
137PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/des.h
138
139$(PROJECT_INCLUDE)/rpc/des_crypt.h: include/rpc/des_crypt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
140        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/des_crypt.h
141PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/des_crypt.h
142
143$(PROJECT_INCLUDE)/rpc/pmap_clnt.h: include/rpc/pmap_clnt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
144        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/pmap_clnt.h
145PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_clnt.h
146
147$(PROJECT_INCLUDE)/rpc/pmap_prot.h: include/rpc/pmap_prot.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
148        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/pmap_prot.h
149PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_prot.h
150
151$(PROJECT_INCLUDE)/rpc/pmap_rmt.h: include/rpc/pmap_rmt.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
152        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/pmap_rmt.h
153PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_rmt.h
154
155$(PROJECT_INCLUDE)/rpc/rpc.h: include/rpc/rpc.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
156        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/rpc.h
157PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc.h
158
159$(PROJECT_INCLUDE)/rpc/rpc_com.h: include/rpc/rpc_com.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
160        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/rpc_com.h
161PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc_com.h
162
163$(PROJECT_INCLUDE)/rpc/rpc_msg.h: include/rpc/rpc_msg.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
164        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/rpc_msg.h
165PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc_msg.h
166
167$(PROJECT_INCLUDE)/rpc/svc.h: include/rpc/svc.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
168        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/svc.h
169PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/svc.h
170
171$(PROJECT_INCLUDE)/rpc/svc_auth.h: include/rpc/svc_auth.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
172        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/svc_auth.h
173PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/svc_auth.h
174
175$(PROJECT_INCLUDE)/rpc/types.h: include/rpc/types.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
176        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/types.h
177PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/types.h
178
179$(PROJECT_INCLUDE)/rpc/xdr.h: include/rpc/xdr.h $(PROJECT_INCLUDE)/rpc/$(dirstamp)
180        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rpc/xdr.h
181PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/xdr.h
182endif
183
184CLEANFILES += $(PREINSTALL_FILES)
185DISTCLEANFILES = $(PREINSTALL_DIRS)
186
187include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.