Updated ntpc to allow small incremental updates to the system time via "ntpstep"...
[tomato.git] / release / src / router / ntpc / Makefile
blob243f759b6cfc2cd89bc72ca4e16840e3bde70337
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 && ln -sf ntpc ntpstep
23 clean:
24 rm -f ntpc .*.depend *.o
26 %.o: %.c .%.depend
27 @echo " [ntpc] CC $@"
28 @$(CC) $(CFLAGS) -c $<
30 .depend: $(OBJS:%.o=%.c)
31 @$(CC) $(CFLAGS) -M $^ > .depend
33 .%.depend: %.c
34 @$(CC) $(CFLAGS) -M $< > $@
36 -include $(OBJS:%.o=.%.depend)