libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / rstats / Makefile
blobe47d62d170e8defd2146b42d39dee3afca4e821b
1 include ../common.mak
3 CFLAGS = -Os -Wall $(EXTRACFLAGS) #-mips32
4 CFLAGS += -I$(SRCBASE)/include -I$(TOP)/shared
5 LDFLAGS =
7 OBJS = rstats.o
9 all: rstats
11 rstats: $(OBJS)
12 @echo " [rstats] CC -o $@"
13 @$(CC) $(LDFLAGS) -o $@ $(OBJS) -L../nvram -lnvram -L../shared -lshared
15 $(SIZECHECK)
16 $(CPTMP)
18 clean:
19 rm -f rstats .*.depend
20 rm -f *.o
22 install: all
23 @echo " [rstats] Installing..."
24 install -D rstats $(INSTALLDIR)/bin/rstats
25 $(STRIP) $(INSTALLDIR)/bin/rstats
26 chmod 0500 $(INSTALLDIR)/bin/rstats
28 %.o: %.c .%.depend
29 @echo " [rstats] 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)