summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-01-07 17:48:16 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-01-07 17:48:16 +0000
commit07347cb5e79d1d651655e7975b69cb8a45243017 (patch)
tree0150c1398a86acf7b5e77a557abd596b737b89fc /cpukit/posix
parente7d110bac375c718300815ca6f3c896c655f4691 (diff)
downloadrtems-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 'cpukit/posix')
-rw-r--r--cpukit/posix/ChangeLog4
-rw-r--r--cpukit/posix/Makefile.am21
2 files changed, 13 insertions, 12 deletions
diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog
index 9d88a9090d..6f702ef97a 100644
--- a/cpukit/posix/ChangeLog
+++ b/cpukit/posix/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/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