3 CFLAGS
= -Os
-Wall
#-mips32
4 CFLAGS
+= -I
$(SRCBASE
)/include -I
$(TOP
)/shared
11 @echo
" [ntpc] CC -o $@"
12 @
$(CC
) $(LDFLAGS
) -o
$@
$(OBJS
) -L..
/nvram
-lnvram
-L..
/shared
-lshared
18 install -D
-m
0500 ntpc
$(INSTALLDIR
)/bin
/ntpc
19 $(STRIP
) $(INSTALLDIR
)/bin
/ntpc
21 cd
$(INSTALLDIR
)/bin
&& ln
-sf ntpc ntpsync
&& ln
-sf ntpc ntpstep
24 rm -f ntpc .
*.depend
*.o
28 @
$(CC
) $(CFLAGS
) -c
$<
30 .depend
: $(OBJS
:%.o
=%.c
)
31 @
$(CC
) $(CFLAGS
) -M
$^
> .depend
34 @
$(CC
) $(CFLAGS
) -M
$< > $@
36 -include $(OBJS
:%.o
=.
%.depend
)