summaryrefslogtreecommitdiff
path: root/libc/unistd/Makefile
diff options
context:
space:
mode:
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))