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/posix/Makefile.am | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'cpukit/posix/Makefile.am') diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am index 1c36991cb2..6d2106293e 100644 --- a/cpukit/posix/Makefile.am +++ b/cpukit/posix/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 EXTRA_DIST = @@ -147,24 +146,22 @@ C_FILES = src/adasupp.c $(CANCEL_C_FILES) $(CONDITION_VARIABLE_C_FILES) \ $(MUTEX_C_FILES) $(PTHREAD_C_FILES) $(PSIGNAL_C_FILES) src/sched.c \ $(SEMAPHORE_C_FILES) src/sysconf.c $(TIME_C_FILES) $(TIMER_C_FILES) \ src/types.c $(ENOSYS_C_FILES) $(BUILD_FOR_NOW_C_FILES) -OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT)) - -# -# Add local stuff here using += -# AM_CPPFLAGS += -I$(top_builddir) AM_CPPFLAGS += -D__RTEMS_INSIDE__ +EXTRA_LIBRARIES = o-optimize/libposix.a +o_optimize_libposix_a_SOURCES = $(C_FILES) +o_optimize_libposix_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) + +EXTRA_LIBRARIES += o-debug/libposix.a +o_debug_libposix_a_SOURCES = $(C_FILES) +o_debug_libposix_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) + all-local: $(PREINSTALL_FILES) $(LIB) -$(LIB): ${OBJS} - $(make-library) endif -${ARCH}/%.$(OBJEXT): src/%.c $(ARCH)/$(dirstamp) - ${COMPILE} -o $@ -c $< - # temporary so we can see how many things are left to implement not: grep -i NOT_IMPL $(C_FILES:%=$(srcdir)/%) | grep -v MP_NOT_IMPL -- cgit v1.2.3