summaryrefslogtreecommitdiffstats
path: root/c/src/wrapup/Makefile.am
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-23 14:10:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-23 14:10:05 +0000
commit23e3f642e4f0753029b4bd4d444cd94b8f4bb4c6 (patch)
treee514d60d91bdb207f0ef720199ef8d1e21e80ca5 /c/src/wrapup/Makefile.am
parent9f4868cea9c37ff42c0c01dd217c6710a6dda2aa (diff)
downloadrtems-23e3f642e4f0753029b4bd4d444cd94b8f4bb4c6.tar.bz2
Missed in previous automake conversion patches from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>.
Diffstat (limited to 'c/src/wrapup/Makefile.am')
-rw-r--r--c/src/wrapup/Makefile.am77
1 files changed, 77 insertions, 0 deletions
diff --git a/c/src/wrapup/Makefile.am b/c/src/wrapup/Makefile.am
new file mode 100644
index 0000000000..e974be5387
--- /dev/null
+++ b/c/src/wrapup/Makefile.am
@@ -0,0 +1,77 @@
+#
+# $Id$
+#
+# build and install "glommed" librtemsall.a
+#
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../../automake/lib.am
+
+LIBNAME = librtemsall
+LIB = $(PROJECT_RELEASE)/lib/$(LIBNAME)${LIB_VARIANT}.a
+
+SRCS = $(wildcard $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a) \
+ $(PROJECT_RELEASE)/lib/librtems$(LIB_VARIANT).a \
+ $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/libitron$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
+ $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
+ $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
+ $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
+ $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
+
+CLEANFILES += $(ARCH)/check
+
+TMPINSTALL_FILES += \
+$(PROJECT_RELEASE)/lib/$(LIBNAME)${LIB_VARIANT}.a
+
+all: $(ARCH) $(TMPINSTALL_FILES)
+
+install: all
+
+$(ARCH)/check: $(SRCS)
+ @$(RM) $@; touch $@;
+ @for f in $(SRCS); do \
+ case $$f in \
+ *.o) echo " `basename $$f`" >> $@ \
+ ;; \
+ *.rel) echo " `basename $$f`" >> $@ \
+ ;; \
+ *.a) \
+ ( list=`$(AR) t $$f`;\
+ for i in $$list; do \
+ if fgrep " $$i" $@; then \
+ echo "ERROR -- $$i in multiple files"; exit 1; \
+ fi;\
+ echo " $$i" >> $@;\
+ done; ) \
+ ;; \
+ esac; \
+ done;
+
+$(LIB): $(ARCH)/check
+ @for f in $(SRCS); do \
+ case $$f in \
+ *.o) $(AR) ru $@ $$f \
+ ;;\
+ *.rel) $(AR) ru $@ $$f \
+ ;;\
+ *.a) \
+ (cd $(ARCH); \
+ list=`$(AR) t ../$$f`; \
+ $(AR) x ../$$f $$list; $(AR) ru ../$@ $$list; \
+ $(RM) $$list ;)\
+ ;; \
+ esac; \
+ done;
+ @$(RANLIB) $@
+ @echo "*** Glommed $@"
+
+include $(top_srcdir)/../../automake/local.am