]> Git Repo - uclibc-ng.git/blame - libc/unistd/Makefile.in
Only because of multi sources I had to touch up these and add code duplication
[uclibc-ng.git] / libc / unistd / Makefile.in
CommitLineData
a80fc77b
PM
1# Makefile for uClibc
2#
3# Copyright (C) 2000-2005 Erik Andersen <[email protected]>
4#
5# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6#
7
8CSRC:= sleep.c usleep.c ualarm.c getpass.c sysconf.c getlogin.c \
9 fpathconf.c confstr.c pathconf.c swab.c usershell.c \
10 getsubopt.c daemon.c
11
12MSRC:=exec.c
13MOBJ:=execl.o execv.o execle.o execlp.o execvp.o
14
15ifneq ($(ARCH_HAS_MMU),y)
16MOBJ+=__exec_alloc.o
17endif
18
19ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
20CSRC+=getopt.c
21else
22CSRC+=getopt-susv3.c
23endif
24
25UNISTD_DIR:=$(top_srcdir)libc/unistd
26UNISTD_OUT:=$(top_builddir)libc/unistd
27
28UNISTD_SRC:=$(patsubst %.c,$(UNISTD_DIR)/%.c,$(CSRC))
29UNISTD_OBJ:=$(patsubst %.c,$(UNISTD_OUT)/%.o,$(CSRC))
30
31UNISTD_MSRC:=$(patsubst %.c,$(UNISTD_DIR)/%.c,$(MSRC))
32UNISTD_MOBJ:=$(patsubst %.o,$(UNISTD_OUT)/%.o,$(MOBJ))
33
34UNISTD_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(UNISTD_MOBJ))))
35
36UNISTD_OBJS:=$(UNISTD_OBJ) $(UNISTD_MOBJ)
37
e0778608
PM
38$(UNISTD_MOBJ): $(UNISTD_MSRC)
39 $(compile.m)
40
41$(UNISTD_MOBJ:.o=.os): $(UNISTD_MSRC)
a80fc77b
PM
42 $(compile.m)
43
44libc-a-y+=$(UNISTD_OBJS)
a80fc77b
PM
45libc-so-y+=$(UNISTD_OBJS:.o=.os)
46
47CFLAGS-multi-y+=$(UNISTD_DEF)
48libc-multi-y+=$(UNISTD_SRC) $(UNISTD_MSRC)
49
50objclean-y+=unistd_objclean
51
52unistd_objclean:
53 $(RM) $(UNISTD_OUT)/*.{o,os}
This page took 0.031515 seconds and 4 git commands to generate.