Changeset 07347cb in rtems for cpukit/score/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/score/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
    98SUBDIRS = . cpu
     
    8281## src
    8382
    84 LIB=$(ARCH)/libscore.a
    85 
    8683# We only build multiprocessing related files if HAS_MP was defined
    8784MP_C_FILES = src/mpci.c src/objectmp.c src/threadmp.c
     
    147144C_FILES += $(MP_C_FILES)
    148145endif
    149 OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
    150 
    151 #
    152 # Add local stuff here using +=
    153 #
    154146
    155147AM_CPPFLAGS += -D__RTEMS_INSIDE__
    156148
    157 $(LIB): ${OBJS}
    158         $(make-library)
    159 
    160 ${ARCH}/%.$(OBJEXT): src/%.c $(ARCH)/$(dirstamp)
    161         ${COMPILE} -o $@ -c $<
     149EXTRA_LIBRARIES = o-optimize/libscore.a
     150o_optimize_libscore_a_SOURCES = $(C_FILES)
     151o_optimize_libscore_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     152
     153EXTRA_LIBRARIES += o-debug/libscore.a
     154o_debug_libscore_a_SOURCES = $(C_FILES)
     155o_debug_libscore_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
    162156
    163157EXTRA_DIST += $(STD_C_FILES) $(MP_C_FILES) src/Unlimited.txt
    164158
    165 all-local: $(PREINSTALL_FILES) $(LIB)
     159all-local: $(PREINSTALL_FILES) $(ARCH)/libscore.a
    166160
    167161PREINSTALL_FILES =
Note: See TracChangeset for help on using the changeset viewer.