summaryrefslogtreecommitdiff
path: root/libc/unistd/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-07 12:49:38 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-07 12:49:38 +0000
commit8cea9a34c6c3552ad8be8a7d682fb051f99c6aa4 (patch)
tree17f676456e77188bf5e539b21cacc37ead8de5ed /libc/unistd/Makefile
parent24fcbf9eefede3114cd6d68e1b62486e0923b325 (diff)
rework getopt. no read need to split this one up since
the parts are so tightly coupled.
Diffstat (limited to 'libc/unistd/Makefile')
-rw-r--r--libc/unistd/Makefile13
1 files changed, 3 insertions, 10 deletions
diff --git a/libc/unistd/Makefile b/libc/unistd/Makefile
index fbb35fbe5..f9e090f19 100644
--- a/libc/unistd/Makefile
+++ b/libc/unistd/Makefile
@@ -27,7 +27,8 @@ DIRS:=
CSRC=execl.c execlp.c execv.c execvep.c execvp.c execle.c \
sleep.c usleep.c getpass.c sysconf_src.c getlogin.c \
- fpathconf.c confstr.c pathconf.c swab.c usershell.c
+ fpathconf.c confstr.c pathconf.c swab.c usershell.c \
+ getopt.c
ifeq ($(strip $(HAS_MMU)),true)
CSRC+=daemon.c
endif
@@ -40,11 +41,7 @@ else
endif
COBJS=$(patsubst %.c,%.o, $(CSRC))
-
-MSRC=getopt.c
-MOBJ=_gnu_getopt_internal.o gnu_getopt_long.o gnu_getopt_long_only.o
-
-OBJS=$(COBJS) $(MOBJ)
+OBJS=$(COBJS)
all: $(SYSCONF) $(OBJS) $(LIBC)
@@ -98,10 +95,6 @@ $(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
-$(MOBJ): $(MSRC)
- $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
- $(STRIPTOOL) -x -R .note -R .comment $*.o
-
$(OBJ): Makefile
subdirs: $(patsubst %, _dir_%, $(DIRS))