Clean and tiddy-up files.
[tomato.git] / release / src / router / jffsfilegen / Makefile
blob94482a58a3f1bd42c38d18ac3cf69ef005314b93
1 include ../common.mak
3 CFLAGS = -O2 -Wall
4 CFLAGS += -I../shared -I../../include -I.
5 ifeq ($(STATIC),1)
6 CFLAGS += -static
7 endif
9 all: filegen
12 filegen: filegen.o
13 @echo " [filegen] CC $@"
14 $(CC) $(CFLAGS) -o $@ filegen.o $(LIBDIR)/libm.a
15 $(SIZECHECK)
16 cp filegen ~/tomato/
18 install: all
20 clean:
21 rm -f *.o filegen
24 %.o: %.c .%.depend
25 @echo " [filegen] CC $@"
26 @$(CC) $(CFLAGS) -o $@ -c $<
28 .depend: $(OBJS:%.o=%.c)
29 @$(CC) $(CFLAGS) -M $^ > .depend
31 .%.depend: %.c
32 @$(CC) $(CFLAGS) -M $< > $@
34 -include $(OBJS:%.o=.%.depend)