From 07347cb5e79d1d651655e7975b69cb8a45243017 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 7 Jan 2004 17:48:16 +0000 Subject: 2004-01-07 Ralf Corsepius * Makefile.am: Build library using EXTRA_LIBRARIES and automake rules. --- cpukit/score/ChangeLog | 4 ++++ cpukit/score/Makefile.am | 22 ++++++++-------------- 2 files changed, 12 insertions(+), 14 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog index 80e98014ba..e89019c76f 100644 --- a/cpukit/score/ChangeLog +++ b/cpukit/score/ChangeLog @@ -1,3 +1,7 @@ +2004-01-07 Ralf Corsepius + + * Makefile.am: Build library using EXTRA_LIBRARIES and automake rules. + 2003-12-16 Ralf Corsepius PR 533/bsps diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index d09c020ce5..32e7d7c743 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -3,8 +3,7 @@ ## include $(top_srcdir)/automake/multilib.am -include $(top_srcdir)/automake/compile.am -include $(top_srcdir)/automake/lib.am +include $(top_srcdir)/automake/amcompile.am SUBDIRS = . cpu @@ -81,8 +80,6 @@ EXTRA_DIST = macros/README ## src -LIB=$(ARCH)/libscore.a - # We only build multiprocessing related files if HAS_MP was defined MP_C_FILES = src/mpci.c src/objectmp.c src/threadmp.c @@ -146,23 +143,20 @@ C_FILES = $(STD_C_FILES) if HAS_MP C_FILES += $(MP_C_FILES) endif -OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT)) - -# -# Add local stuff here using += -# AM_CPPFLAGS += -D__RTEMS_INSIDE__ -$(LIB): ${OBJS} - $(make-library) +EXTRA_LIBRARIES = o-optimize/libscore.a +o_optimize_libscore_a_SOURCES = $(C_FILES) +o_optimize_libscore_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) -${ARCH}/%.$(OBJEXT): src/%.c $(ARCH)/$(dirstamp) - ${COMPILE} -o $@ -c $< +EXTRA_LIBRARIES += o-debug/libscore.a +o_debug_libscore_a_SOURCES = $(C_FILES) +o_debug_libscore_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) EXTRA_DIST += $(STD_C_FILES) $(MP_C_FILES) src/Unlimited.txt -all-local: $(PREINSTALL_FILES) $(LIB) +all-local: $(PREINSTALL_FILES) $(ARCH)/libscore.a PREINSTALL_FILES = -- cgit v1.2.3