summaryrefslogtreecommitdiffstats
path: root/c/src/exec/wrapup/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-23 13:29:04 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-23 13:29:04 +0000
commitfba12eb6ff4a91fcbac1c43dd3196114cc12756b (patch)
tree34477c9b77ceab1ee81e0ea4a9ee9a6e3a3975cf /c/src/exec/wrapup/posix
parentb0ab1d747bfb93b1d9bf65cd901762d94da374ea (diff)
downloadrtems-fba12eb6ff4a91fcbac1c43dd3196114cc12756b.tar.bz2
Patch rtems-rc-19991117-11.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
to convert the libc directory to automake and "dozens of small fixes for Makefile.ins/configure.ins below c/src/lib."
Diffstat (limited to 'c/src/exec/wrapup/posix')
-rw-r--r--c/src/exec/wrapup/posix/Makefile.am36
-rw-r--r--c/src/exec/wrapup/posix/Makefile.in58
2 files changed, 36 insertions, 58 deletions
diff --git a/c/src/exec/wrapup/posix/Makefile.am b/c/src/exec/wrapup/posix/Makefile.am
new file mode 100644
index 0000000000..d80634763d
--- /dev/null
+++ b/c/src/exec/wrapup/posix/Makefile.am
@@ -0,0 +1,36 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+if HAS_POSIX
+LIBNAME = libposix
+LIB = $(ARCH)/$(LIBNAME).a
+endif
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../../../automake/lib.am
+
+if HAS_POSIX
+
+POSIX_OBJS = $(wildcard ../../posix/src/$(ARCH)/*.o)
+
+OBJS = $(POSIX_OBJS)
+
+$(LIB): ${OBJS}
+ $(make-library)
+
+POSIX_LIB = \
+$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
+
+$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
+ $(INSTALL_DATA) $< $@
+
+all: ${ARCH} $(LIB) $(TMPINSTALL_FILES)
+
+endif
+
+TMPINSTALL_FILES += $(POSIX_LIB)
+
+include $(top_srcdir)/../../../automake/local.am
diff --git a/c/src/exec/wrapup/posix/Makefile.in b/c/src/exec/wrapup/posix/Makefile.in
deleted file mode 100644
index 4ea34f75fb..0000000000
--- a/c/src/exec/wrapup/posix/Makefile.in
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# $Id$
-#
-
-@SET_MAKE@
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-top_builddir = ../..
-subdir = wrapup/posix
-
-RTEMS_ROOT = @RTEMS_ROOT@
-PROJECT_ROOT = @PROJECT_ROOT@
-
-VPATH = @srcdir@
-
-POSIX_OBJS = $(wildcard ../../posix/src/$(ARCH)/*.o)
-
-OBJS = $(CPU_OBJS) $(CORE_OBJS) $(POSIX_OBJS) $(SAPI_OBJS)
-# HACK: AM_CONDITIONAL
-LIB = @HAS_POSIX_TRUE@$(ARCH)/libposix.a
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
-include $(RTEMS_ROOT)/make/lib.cfg
-
-INSTALL_CHANGE = @INSTALL_CHANGE@
-
-#
-# (OPTIONAL) Add local stuff here using +=
-#
-
-DEFINES +=
-CPPFLAGS +=
-CFLAGS +=
-
-LD_PATHS +=
-LD_LIBS +=
-LDFLAGS +=
-
-#
-# Add your list of files to delete here. The config files
-# already know how to delete some stuff, so you may want
-# to just run 'make clean' first to see what gets missed.
-# 'make clobber' already includes 'make clean'
-#
-
-CLEAN_ADDITIONS +=
-CLOBBER_ADDITIONS +=
-
-$(LIB): ${OBJS}
- $(make-library)
-
-# HACK: AM_CONDITIONAL
-all: @HAS_POSIX_TRUE@${ARCH} $(SRCS) $(LIB)
-@HAS_POSIX_TRUE@ @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
-
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) \
- && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status