Tomato 1.26 beta (1786)
[tomato.git] / release / src / router / ntpc / Makefile
blobafb5b4480a19dc8a9a849122b06504565d061004
1 include ../common.mak
3 CFLAGS = -Os -Wall #-mips32
4 CFLAGS += -I$(SRCBASE)/include -I$(TOP)/shared
6 OBJS = ntpc.o
8 all: ntpc
10 ntpc: $(OBJS)
11 @echo " [ntpc] CC -o $@"
12 @$(CC) $(LDFLAGS) -o $@ $(OBJS) -L../nvram -lnvram -L../shared -lshared
14 $(SIZECHECK)
15 $(CPTMP)
17 install: all
18 install -D -m 0500 ntpc $(INSTALLDIR)/bin/ntpc
19 $(STRIP) $(INSTALLDIR)/bin/ntpc
21 cd $(INSTALLDIR)/bin && ln -sf ntpc ntpsync
22 cd $(INSTALLDIR)/bin && ln -sf ntpc ntpstep
24 clean:
25 rm -f ntpc .*.depend *.o
27 %.o: %.c .%.depend
28 @echo " [ntpc] CC $@"
29 @$(CC) $(CFLAGS) -c $<
31 .depend: $(OBJS:%.o=%.c)
32 @$(CC) $(CFLAGS) -M $^ > .depend
34 .%.depend: %.c
35 @$(CC) $(CFLAGS) -M $< > $@
37 -include $(OBJS:%.o=.%.depend)