4 .PHONY
: all clean install FORCE
6 all : can_user_push can_user_push_http getent get_user_uuid peek_packet rangecgi
9 rm -rf can_user_push.o
* can_user_push.d
* can_user_push
10 rm -rf can_user_push_http.o
* can_user_push_http.d
* can_user_push_http
11 rm -rf getent.o
* getent.d
* getent
12 rm -rf get_user_uuid.o
* get_user_uuid.d
* get_user_uuid
13 rm -rf peek_packet.o
* peek_packet.d
* peek_packet
14 rm -rf rangecgi.o
* rangecgi.d
* rangecgi
15 rm -f GROUP-FILE PASSWD-FILE
19 TRACK_GROUP_FILE
:= $(shell cd ..
&& . .
/shlib.sh
&& echo
"$$cfg_chroot/etc/group")
20 export TRACK_GROUP_FILE
21 TRACK_PASSWD_FILE
:= $(shell cd ..
&& . .
/shlib.sh
&& echo
"$$cfg_chroot/etc/passwd")
22 export TRACK_PASSWD_FILE
25 @if
test x
"$$TRACK_GROUP_FILE" != x
"`cat GROUP-FILE 2>/dev/null`"; then \
26 echo
"* new group file location"; \
27 echo
"$$TRACK_GROUP_FILE" >GROUP-FILE
; \
31 @if
test x
"$$TRACK_PASSWD_FILE" != x
"`cat PASSWD-FILE 2>/dev/null`"; then \
32 echo
"* new passwd file location"; \
33 echo
"$$TRACK_PASSWD_FILE" >PASSWD-FILE
; \
36 can_user_push
: can_user_push.c
37 $(CC
) -o
$@
$(CFLAGS
) $?
39 can_user_push_http
: can_user_push_http.c GROUP-FILE
40 $(CC
) -o
$@
$(CFLAGS
) -D
"GROUP_FILE=\"$(TRACK_GROUP_FILE)\"" can_user_push_http.c
43 $(CC
) -o
$@
$(CFLAGS
) $?
45 get_user_uuid
: get_user_uuid.c PASSWD-FILE
46 $(CC
) -o
$@
$(CFLAGS
) -D
"PASSWD_FILE=\"$(TRACK_PASSWD_FILE)\"" get_user_uuid.c
48 peek_packet
: peek_packet.c
49 $(CC
) -o
$@
$(CFLAGS
) peek_packet.c
52 $(CC
) -o
$@
$(CFLAGS
) rangecgi.c