Changeset 69a6204c in rtems for cpukit/librpc/Makefile.am


Ignore:
Timestamp:
Nov 27, 2003, 2:29:34 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1bcbe41
Parents:
d16b2d3
Message:

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

  • src/rpc/Makefile.am, src/xdr/Makefile.am, src/Makefile.am: Removed.
  • Makefile.am: Merge-in src/rpc/Makefile.am, src/xdr/Makefile.am, src/Makefile.am. Various fixes. Reformat.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/Makefile.am

    rd16b2d3 r69a6204c  
    33##
    44
    5 SUBDIRS = . src
     5include $(top_srcdir)/automake/multilib.am
     6include $(top_srcdir)/automake/compile.am
     7include $(top_srcdir)/automake/lib.am
    68
    7 if HAS_NETWORKING
     9if LIBRPC
    810include_rpcdir = $(includedir)/rpc
    9 include_rpc_HEADERS = \
    10     include/rpc/auth.h include/rpc/auth_des.h include/rpc/auth_unix.h \
    11     include/rpc/clnt.h include/rpc/des.h include/rpc/des_crypt.h \
    12     include/rpc/pmap_clnt.h include/rpc/pmap_prot.h include/rpc/pmap_rmt.h \
    13     include/rpc/rpc.h include/rpc/rpc_com.h include/rpc/rpc_msg.h \
    14     include/rpc/svc.h include/rpc/svc_auth.h \
     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 \
    1516    include/rpc/types.h include/rpc/xdr.h
    1617
    17 PREINSTALL_FILES = $(PROJECT_INCLUDE)/rpc \
    18     $(include_rpc_HEADERS:include/rpc/%.h=$(PROJECT_INCLUDE)/rpc/%.h)
     18man_MANS =
     19#endif
    1920
    20 $(PROJECT_INCLUDE)/rpc:
     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):
    2136        @$(mkinstalldirs) $@
    22 $(PROJECT_INCLUDE)/%.h: include/%.h
    23         $(INSTALL_DATA) $< $@
     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
    2444endif
    2545
    26 all-local: $(PREINSTALL_FILES)
     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
    2764
    28 EXTRA_DIST = include/rpcsvc/bootparam_prot.x include/rpcsvc/crypt.x \
    29     include/rpcsvc/key_prot.x include/rpcsvc/klm_prot.x \
    30     include/rpcsvc/mount.x include/rpcsvc/nfs_prot.x include/rpcsvc/nis.x \
    31     include/rpcsvc/nis_cache.x include/rpcsvc/nis_callback.x \
    32     include/rpcsvc/nis_db.h include/rpcsvc/nis_object.x \
    33     include/rpcsvc/nis_tags.h include/rpcsvc/nislib.h \
    34     include/rpcsvc/nlm_prot.x include/rpcsvc/pmap_prot.x \
    35     include/rpcsvc/rex.x include/rpcsvc/rnusers.x include/rpcsvc/rquota.x \
    36     include/rpcsvc/rstat.x include/rpcsvc/rwall.x include/rpcsvc/sm_inter.x \
    37     include/rpcsvc/spray.x include/rpcsvc/yp.x include/rpcsvc/yp_prot.h \
    38     include/rpcsvc/ypclnt.h include/rpcsvc/yppasswd.x \
    39     include/rpcsvc/ypupdate_prot.x include/rpcsvc/ypxfrd.x
     65if LIBRPC
     66librpc_C_O_FILES = \
     67    $(librpc_C_FILES:src/rpc/%.c=src/rpc/$(ARCH)/%.$(OBJEXT))
    4068
    41 EXTRA_DIST += README_RTEMS
     69librpc_OBJS = $(librpc_C_O_FILES)
    4270
    43 include $(top_srcdir)/automake/subdirs.am
     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
     96
     97endif
     98
     99PREINSTALL_FILES =
     100
     101if LIBRPC
     102$(PROJECT_INCLUDE)/rpc:
     103        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rpc
     104PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc
     105
     106$(PROJECT_INCLUDE)/rpc/auth.h: include/rpc/auth.h
     107        $(INSTALL_DATA) $< $@
     108PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth.h
     109
     110$(PROJECT_INCLUDE)/rpc/auth_des.h: include/rpc/auth_des.h
     111        $(INSTALL_DATA) $< $@
     112PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth_des.h
     113
     114$(PROJECT_INCLUDE)/rpc/auth_unix.h: include/rpc/auth_unix.h
     115        $(INSTALL_DATA) $< $@
     116PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/auth_unix.h
     117
     118$(PROJECT_INCLUDE)/rpc/clnt.h: include/rpc/clnt.h
     119        $(INSTALL_DATA) $< $@
     120PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/clnt.h
     121
     122$(PROJECT_INCLUDE)/rpc/des.h: include/rpc/des.h
     123        $(INSTALL_DATA) $< $@
     124PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/des.h
     125
     126$(PROJECT_INCLUDE)/rpc/des_crypt.h: include/rpc/des_crypt.h
     127        $(INSTALL_DATA) $< $@
     128PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/des_crypt.h
     129
     130$(PROJECT_INCLUDE)/rpc/pmap_clnt.h: include/rpc/pmap_clnt.h
     131        $(INSTALL_DATA) $< $@
     132PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_clnt.h
     133
     134$(PROJECT_INCLUDE)/rpc/pmap_prot.h: include/rpc/pmap_prot.h
     135        $(INSTALL_DATA) $< $@
     136PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_prot.h
     137
     138$(PROJECT_INCLUDE)/rpc/pmap_rmt.h: include/rpc/pmap_rmt.h
     139        $(INSTALL_DATA) $< $@
     140PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/pmap_rmt.h
     141
     142$(PROJECT_INCLUDE)/rpc/rpc.h: include/rpc/rpc.h
     143        $(INSTALL_DATA) $< $@
     144PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc.h
     145
     146$(PROJECT_INCLUDE)/rpc/rpc_com.h: include/rpc/rpc_com.h
     147        $(INSTALL_DATA) $< $@
     148PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc_com.h
     149
     150$(PROJECT_INCLUDE)/rpc/rpc_msg.h: include/rpc/rpc_msg.h
     151        $(INSTALL_DATA) $< $@
     152PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/rpc_msg.h
     153
     154$(PROJECT_INCLUDE)/rpc/svc.h: include/rpc/svc.h
     155        $(INSTALL_DATA) $< $@
     156PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/svc.h
     157
     158$(PROJECT_INCLUDE)/rpc/svc_auth.h: include/rpc/svc_auth.h
     159        $(INSTALL_DATA) $< $@
     160PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/svc_auth.h
     161
     162$(PROJECT_INCLUDE)/rpc/types.h: include/rpc/types.h
     163        $(INSTALL_DATA) $< $@
     164PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/types.h
     165
     166$(PROJECT_INCLUDE)/rpc/xdr.h: include/rpc/xdr.h
     167        $(INSTALL_DATA) $< $@
     168PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc/xdr.h
     169
     170endif
     171
    44172include $(top_srcdir)/automake/local.am
Note: See TracChangeset for help on using the changeset viewer.