summaryrefslogtreecommitdiff
path: root/libc/misc/ftw/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-06 02:15:41 +0000
committerEric Andersen <andersen@codepoet.org>2003-09-06 02:15:41 +0000
commit700f82078eaf6047fae584f24c818c1bba0fac41 (patch)
tree356eef2e0f024a9569e0d1878743c4de9c65275d /libc/misc/ftw/Makefile
parent8be2cd0487bd6729394776b9365f210ed3875ac3 (diff)
fixup ftw and ftw64. Unfortunately, adding ftw64 doubles the
size... :-(
Diffstat (limited to 'libc/misc/ftw/Makefile')
-rw-r--r--libc/misc/ftw/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/misc/ftw/Makefile b/libc/misc/ftw/Makefile
index 7af2caca2..ae21c222c 100644
--- a/libc/misc/ftw/Makefile
+++ b/libc/misc/ftw/Makefile
@@ -23,6 +23,10 @@ CSRC=ftw.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
+MSRC=ftw.c
+MOBJ=ftw.o ftw64.o
+OBJS=$(MOBJ)
+
all: $(OBJS) $(LIBC)
$(LIBC): ar-target
@@ -30,8 +34,8 @@ $(LIBC): ar-target
ar-target: $(OBJS)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
-$(COBJS): %.o : %.c
- $(CC) $(CFLAGS) -c $< -o $@
+$(MOBJ): $(MSRC)
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
clean: