From 8cea9a34c6c3552ad8be8a7d682fb051f99c6aa4 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 7 Aug 2002 12:49:38 +0000 Subject: rework getopt. no read need to split this one up since the parts are so tightly coupled. --- libc/unistd/Makefile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'libc/unistd/Makefile') 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)) -- cgit v1.2.3