3 CFLAGS
= -Os
-Wall
$(EXTRACFLAGS
) #-mips32
4 CFLAGS
+= -I
$(SRCBASE
)/include -I
$(TOP
)/shared
12 @echo
" [rstats] CC -o $@"
13 @
$(CC
) $(LDFLAGS
) -o
$@
$(OBJS
) -L..
/nvram
-lnvram
-L..
/shared
-lshared
19 rm -f rstats .
*.depend
23 @echo
" [rstats] Installing..."
24 install -D rstats
$(INSTALLDIR
)/bin
/rstats
25 $(STRIP
) $(INSTALLDIR
)/bin
/rstats
26 chmod
0500 $(INSTALLDIR
)/bin
/rstats
29 @echo
" [rstats] CC $@"
30 @
$(CC
) $(CFLAGS
) -c
$<
32 .depend
: $(OBJS
:%.o
=%.c
)
33 @
$(CC
) $(CFLAGS
) -M
$^
> .depend
36 @
$(CC
) $(CFLAGS
) -M
$< > $@
38 -include $(OBJS
:%.o
=.
%.depend
)