Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / ntpc / Makefile
blob89ed66ee38ddfababa0512339f8154decbeaa3b0
1 include ../common.mak
3 CFLAGS = -Os -Wall $(EXTRACFLAGS)
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$(TOP)/nvram -lnvram -L$(TOP)/shared -lshared
14 $(SIZECHECK)
15 $(CPTMP)
17 install: all
18 install -D ntpc $(INSTALLDIR)/bin/ntpc
19 $(STRIP) $(INSTALLDIR)/bin/ntpc
20 chmod 0500 $(INSTALLDIR)/bin/ntpc
22 cd $(INSTALLDIR)/bin && ln -sf ntpc ntpsync
23 cd $(INSTALLDIR)/bin && ln -sf ntpc ntpstep
25 clean:
26 rm -f ntpc .*.depend *.o
28 %.o: %.c .%.depend
29 @echo " [ntpc] CC $@"
30 @$(CC) $(CFLAGS) -c $<
32 .depend: $(OBJS:%.o=%.c)
33 @$(CC) $(CFLAGS) -M $^ > .depend
35 .%.depend: %.c
36 @$(CC) $(CFLAGS) -M $< > $@
38 -include $(OBJS:%.o=.%.depend)