12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- TOPDIR=../../../
- include $(TOPDIR)Rules.mak
- 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
- ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
- $(MOBJ): $(MSRC)
- $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
- $(STRIPTOOL) -x -R .note -R .comment $*.o
- clean:
- $(RM) *.[oa] *~ core
|