From 700f82078eaf6047fae584f24c818c1bba0fac41 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 6 Sep 2003 02:15:41 +0000 Subject: fixup ftw and ftw64. Unfortunately, adding ftw64 doubles the size... :-( --- libc/misc/ftw/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libc/misc/ftw/Makefile') 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: -- cgit v1.2.3