summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-25 22:17:39 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-25 22:17:39 +0000
commita80fc77b658a7883df95ac41ad83ac9ff7c8ff07 (patch)
tree3edbcb812b876e0ba1424b229d50e9c04a2b0d4a /libc/unistd
parent7ce8f67d27885ea6b1cba2c43e5edc9f1dc17f0f (diff)
All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/Makefile.in51
1 files changed, 51 insertions, 0 deletions
diff --git a/libc/unistd/Makefile.in b/libc/unistd/Makefile.in
new file mode 100644
index 000000000..a72b2d9ed
--- /dev/null
+++ b/libc/unistd/Makefile.in
@@ -0,0 +1,51 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:= sleep.c usleep.c ualarm.c getpass.c sysconf.c getlogin.c \
+ fpathconf.c confstr.c pathconf.c swab.c usershell.c \
+ getsubopt.c daemon.c
+
+MSRC:=exec.c
+MOBJ:=execl.o execv.o execle.o execlp.o execvp.o
+
+ifneq ($(ARCH_HAS_MMU),y)
+MOBJ+=__exec_alloc.o
+endif
+
+ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
+CSRC+=getopt.c
+else
+CSRC+=getopt-susv3.c
+endif
+
+UNISTD_DIR:=$(top_srcdir)libc/unistd
+UNISTD_OUT:=$(top_builddir)libc/unistd
+
+UNISTD_SRC:=$(patsubst %.c,$(UNISTD_DIR)/%.c,$(CSRC))
+UNISTD_OBJ:=$(patsubst %.c,$(UNISTD_OUT)/%.o,$(CSRC))
+
+UNISTD_MSRC:=$(patsubst %.c,$(UNISTD_DIR)/%.c,$(MSRC))
+UNISTD_MOBJ:=$(patsubst %.o,$(UNISTD_OUT)/%.o,$(MOBJ))
+
+UNISTD_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(UNISTD_MOBJ))))
+
+UNISTD_OBJS:=$(UNISTD_OBJ) $(UNISTD_MOBJ)
+
+$(UNISTD_MOBJ) $(UNISTD_MOBJ:.o=.os): $(UNISTD_MSRC)
+ $(compile.m)
+
+libc-a-y+=$(UNISTD_OBJS)
+libc-a-pic-y+=$(UNISTD_OBJS:.o=.os)
+libc-so-y+=$(UNISTD_OBJS:.o=.os)
+
+CFLAGS-multi-y+=$(UNISTD_DEF)
+libc-multi-y+=$(UNISTD_SRC) $(UNISTD_MSRC)
+
+objclean-y+=unistd_objclean
+
+unistd_objclean:
+ $(RM) $(UNISTD_OUT)/*.{o,os}