3 CFLAGS
= -Os
-Wall
$(EXTRACFLAGS
) #-mips32
4 CFLAGS
+= -I
$(SRCBASE
)/include -I
$(TOP
)/shared
7 ifeq ($(TCONFIG_BCMARM
),y
)
16 @echo
" [rstats] CC -o $@"
17 @
$(CC
) $(LDFLAGS
) -o
$@
$(OBJS
) -L..
/nvram
${BCMEX} -lnvram
-L..
/shared
-lshared
$(LIBS
)
23 rm -f rstats .
*.depend
27 @echo
" [rstats] Installing..."
28 install -D rstats
$(INSTALLDIR
)/bin
/rstats
29 $(STRIP
) $(INSTALLDIR
)/bin
/rstats
30 chmod
0500 $(INSTALLDIR
)/bin
/rstats
33 @echo
" [rstats] CC $@"
34 @
$(CC
) $(CFLAGS
) -c
$<
36 .depend
: $(OBJS
:%.o
=%.c
)
37 @
$(CC
) $(CFLAGS
) -M
$^
> .depend
40 @
$(CC
) $(CFLAGS
) -M
$< > $@
42 -include $(OBJS
:%.o
=.
%.depend
)