Changeset 07347cb in rtems for cpukit/librpc/Makefile.am


Ignore:
Timestamp:
Jan 7, 2004, 5:48:16 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
74a67351
Parents:
e7d110ba
Message:

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

  • Makefile.am: Build library using EXTRA_LIBRARIES and automake rules.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/Makefile.am

    re7d110ba r07347cb  
    44
    55include $(top_srcdir)/automake/multilib.am
    6 include $(top_srcdir)/automake/compile.am
    7 include $(top_srcdir)/automake/lib.am
     6include $(top_srcdir)/automake/amcompile.am
    87
    98if LIBRPC
     
    2322    src/xdr/xdr_sizeof.c src/xdr/xdr_stdio.c
    2423
    25 CLEANDIRS = src/xdr
     24if LIBRPC
     25EXTRA_LIBRARIES = o-optimize/libxdr.a
     26o_optimize_libxdr_a_SOURCES = $(libxdr_C_FILES)
     27o_optimize_libxdr_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
    2628
    27 EXTRA_DIST = $(libxdr_C_FILES)
    28 
    29 if LIBRPC
    30 libxdr_C_O_FILES = \
    31     $(libxdr_C_FILES:src/xdr/%.c=src/xdr/$(ARCH)/%.$(OBJEXT))
    32 
    33 libxdr_OBJS = $(libxdr_C_O_FILES)
    34 
    35 src/xdr/$(ARCH)/$(dirstamp):
    36         @$(mkdir_p) src/xdr/$(ARCH)
    37         @: > src/xdr/$(ARCH)/$(dirstamp)
    38 src/xdr/$(ARCH)/%.$(OBJEXT): src/xdr/%.c src/xdr/$(ARCH)/$(dirstamp)
    39         ${COMPILE} -o $@ -c $<
    40 src/xdr/$(ARCH)/libxdr.a: $(libxdr_OBJS)
    41         $(make-library)
     29EXTRA_LIBRARIES += o-debug/libxdr.a
     30o_debug_libxdr_a_SOURCES = $(libxdr_C_FILES)
     31o_debug_libxdr_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
    4232
    4333man_MANS += src/xdr/xdr.3
    44 all-local: src/xdr/$(ARCH)/libxdr.a
     34all-local: $(ARCH)/libxdr.a
    4535endif
    4636
     
    6555
    6656if LIBRPC
    67 librpc_C_O_FILES = \
    68     $(librpc_C_FILES:src/rpc/%.c=src/rpc/$(ARCH)/%.$(OBJEXT))
    69 
    70 librpc_OBJS = $(librpc_C_O_FILES)
    71 
    7257librpc_a_CPPFLAGS = -D_RPC_read=read -D_RPC_write=write -D_RPC_close=close \
    7358    -D_RTEMS_RPC_INTERNAL_
    7459
    75 src/rpc/$(ARCH)/$(dirstamp):
    76         @$(mkdir_p) src/rpc/$(ARCH)
    77         @: > src/rpc/$(ARCH)/$(dirstamp)
    78 src/rpc/$(ARCH)/%.$(OBJEXT): src/rpc/%.c src/rpc/$(ARCH)/$(dirstamp)
    79         ${COMPILE} $(librpc_a_CPPFLAGS) -o $@ -c $<
    80 src/rpc/$(ARCH)/librpc.a: $(librpc_OBJS)
    81         $(make-library)
     60EXTRA_LIBRARIES += o-optimize/librpc.a
     61o_optimize_librpc_a_SOURCES = $(librpc_C_FILES)
     62o_optimize_librpc_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
     63$(librpc_a_CPPFLAGS)
     64
     65EXTRA_LIBRARIES += o-debug/librpc.a
     66o_debug_librpc_a_SOURCES = $(librpc_C_FILES)
     67o_debug_librpc_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
     68$(librpc_a_CPPFLAGS)
    8269
    8370man_MANS += src/rpc/bindresvport.3 src/rpc/getrpcent.3 src/rpc/publickey.3 \
     
    8673    src/rpc/rpc.5 src/rpc/rstat.1 src/rpc/rtime.3
    8774
    88 all-local: src/rpc/$(ARCH)/librpc.a
     75all-local: $(ARCH)/librpc.a
    8976endif
    9077
    91 CLEANDIRS += src/rpc
    92 
    93 EXTRA_DIST += $(librpc_C_FILES) src/rpc/DISCLAIMER $(librpc_UNUSED_C_FILES)
     78EXTRA_DIST = $(librpc_C_FILES) src/rpc/DISCLAIMER $(librpc_UNUSED_C_FILES)
    9479
    9580EXTRA_DIST += src/rpc/PSD.doc/nfs.rfc.ms src/rpc/PSD.doc/rpc.prog.ms \
Note: See TracChangeset for help on using the changeset viewer.