3 CFLAGS
= -Os
-Wall
$(EXTRACFLAGS
)
4 CFLAGS
+= -I
$(SRCBASE
)/include -I
$(TOP
)/shared
11 @echo
" [ntpc] CC -o $@"
12 @
$(CC
) $(LDFLAGS
) -o
$@
$(OBJS
) -L
$(TOP
)/nvram
-lnvram
-L
$(TOP
)/shared
-lshared
18 install -D ntpc
$(INSTALLDIR
)/bin
/ntpc
19 $(STRIP
) $(INSTALLDIR
)/bin
/ntpc
20 chmod
0500 $(INSTALLDIR
)/bin
/ntpc
22 cd
$(INSTALLDIR
)/bin
&& ln
-sf ntpc ntpsync
23 cd
$(INSTALLDIR
)/bin
&& ln
-sf ntpc ntpstep
26 rm -f ntpc .
*.depend
*.o
30 @
$(CC
) $(CFLAGS
) -c
$<
32 .depend
: $(OBJS
:%.o
=%.c
)
33 @
$(CC
) $(CFLAGS
) -M
$^
> .depend
36 @
$(CC
) $(CFLAGS
) -M
$< > $@
38 -include $(OBJS
:%.o
=.
%.depend
)