update #4 - router
[tomato.git] / release / src / router / ntpclient / Makefile
blob3eb745442f31f2a7350fcf549095893fb015a0ca
1 # Under Solaris, you need to
2 # CFLAGS += -xO2 -Xc
3 # LDLIBS += -lnsl -lsocket
4 # Some versions of Linux may need
5 # CFLAGS += -D_GNU_SOURCE
6 # To cross-compile
7 # CC = arm-linux-gcc
9 include ../.config
11 CFLAGS += -Wall -O
13 CFLAGS += -DASUS
14 CFLAGS += -I$(TOP)/shared -I$(SRCBASE)/include
15 LDFLAGS = -L$(TOP)/shared -lshared -L$(TOP)/nvram$(BCMEX) -lnvram
17 ifeq ($(TCONFIG_BCMARM),y)
18 LDFLAGS += -lgcc_s
19 endif
21 INSTALL = install
23 all: ntpclient
25 ntpclient: ntpclient.o phaselock.o
26 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
28 install: ntpclient
29 $(STRIP) ntpclient
30 $(INSTALL) -d $(INSTALLDIR)/usr/sbin
31 $(INSTALL) ntpclient $(INSTALLDIR)/usr/sbin
33 clean:
34 rm -f ntpclient *.o