diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-01-07 17:48:16 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-01-07 17:48:16 +0000 |
commit | 07347cb5e79d1d651655e7975b69cb8a45243017 (patch) | |
tree | 0150c1398a86acf7b5e77a557abd596b737b89fc /cpukit/rtems | |
parent | 2004-01-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-07347cb5e79d1d651655e7975b69cb8a45243017.tar.bz2 |
2004-01-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Build library using EXTRA_LIBRARIES and automake rules.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/rtems/Makefile.am | 23 |
2 files changed, 12 insertions, 15 deletions
diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog index c8cdba3450..88dab9d97d 100644 --- a/cpukit/rtems/ChangeLog +++ b/cpukit/rtems/ChangeLog @@ -1,3 +1,7 @@ +2004-01-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + + * Makefile.am: Build library using EXTRA_LIBRARIES and automake rules. + 2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. diff --git a/cpukit/rtems/Makefile.am b/cpukit/rtems/Makefile.am index 12d004040b..fcbd8c338b 100644 --- a/cpukit/rtems/Makefile.am +++ b/cpukit/rtems/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 # include @@ -58,8 +57,6 @@ include_rtems_rtems_HEADERS += macros/rtems/rtems/asr.inl \ endif ## src -LIB = $(ARCH)/librtems.a - # We only build multiprocessing related files if HAS_MP was defined MP_C_FILES = src/eventmp.c src/mp.c src/msgmp.c src/partmp.c src/regionmp.c \ src/semmp.c src/signalmp.c src/taskmp.c @@ -122,22 +119,18 @@ else C_FILES = $(STD_C_FILES) endif -OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT)) - -# -# Add local stuff here using += -# - AM_CPPFLAGS += -I$(top_builddir) AM_CPPFLAGS += -D__RTEMS_INSIDE__ -all-local: $(PREINSTALL_FILES) $(LIB) +EXTRA_LIBRARIES = o-optimize/librtems.a +o_optimize_librtems_a_SOURCES = $(C_FILES) +o_optimize_librtems_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) -${ARCH}/%.o: src/%.c $(ARCH)/$(dirstamp) - ${COMPILE} -o $@ -c $< +EXTRA_LIBRARIES += o-debug/librtems.a +o_debug_librtems_a_SOURCES = $(C_FILES) +o_debug_librtems_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) -$(LIB): ${OBJS} - $(make-library) +all-local: $(PREINSTALL_FILES) $(ARCH)/librtems.a EXTRA_DIST = $(STD_C_FILES) $(MP_C_FILES) |