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