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


Ignore:
Timestamp:
Jan 7, 2004, 5:48:16 PM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, 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/rtems/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
    98# include
     
    5958
    6059## src
    61 LIB = $(ARCH)/librtems.a
    62 
    6360# We only build multiprocessing related files if HAS_MP was defined
    6461MP_C_FILES = src/eventmp.c src/mp.c src/msgmp.c src/partmp.c src/regionmp.c \
     
    123120endif
    124121
    125 OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
    126 
    127 #
    128 # Add local stuff here using +=
    129 #
    130 
    131122AM_CPPFLAGS += -I$(top_builddir)
    132123AM_CPPFLAGS += -D__RTEMS_INSIDE__
    133124
    134 all-local: $(PREINSTALL_FILES) $(LIB)
    135 
    136 ${ARCH}/%.o: src/%.c $(ARCH)/$(dirstamp)
    137         ${COMPILE} -o $@ -c $<
    138 
    139 $(LIB): ${OBJS}
    140         $(make-library)
     125EXTRA_LIBRARIES = o-optimize/librtems.a
     126o_optimize_librtems_a_SOURCES = $(C_FILES)
     127o_optimize_librtems_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     128
     129EXTRA_LIBRARIES += o-debug/librtems.a
     130o_debug_librtems_a_SOURCES = $(C_FILES)
     131o_debug_librtems_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     132
     133all-local: $(PREINSTALL_FILES) $(ARCH)/librtems.a
    141134
    142135EXTRA_DIST = $(STD_C_FILES) $(MP_C_FILES)
Note: See TracChangeset for help on using the changeset viewer.