4 .PHONY
: all clean install FORCE
6 all : can_user_push can_user_push_http getent get_user_uuid peek_packet
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 -f GROUP-FILE PASSWD-FILE
18 TRACK_GROUP_FILE
:= $(shell cd ..
&& . .
/shlib.sh
&& echo
"$$cfg_chroot/etc/group")
19 export TRACK_GROUP_FILE
20 TRACK_PASSWD_FILE
:= $(shell cd ..
&& . .
/shlib.sh
&& echo
"$$cfg_chroot/etc/passwd")
21 export TRACK_PASSWD_FILE
24 @if
test x
"$$TRACK_GROUP_FILE" != x
"`cat GROUP-FILE 2>/dev/null`"; then \
25 echo
"* new group file location"; \
26 echo
"$$TRACK_GROUP_FILE" >GROUP-FILE
; \
30 @if
test x
"$$TRACK_PASSWD_FILE" != x
"`cat PASSWD-FILE 2>/dev/null`"; then \
31 echo
"* new passwd file location"; \
32 echo
"$$TRACK_PASSWD_FILE" >PASSWD-FILE
; \
35 can_user_push
: can_user_push.c
36 $(CC
) -o
$@
$(CFLAGS
) $?
38 can_user_push_http
: can_user_push_http.c GROUP-FILE
39 $(CC
) -o
$@
$(CFLAGS
) -D
"GROUP_FILE=\"$(TRACK_GROUP_FILE)\"" can_user_push_http.c
42 $(CC
) -o
$@
$(CFLAGS
) $?
44 get_user_uuid
: get_user_uuid.c PASSWD-FILE
45 $(CC
) -o
$@
$(CFLAGS
) -D
"PASSWD_FILE=\"$(TRACK_PASSWD_FILE)\"" get_user_uuid.c
47 peek_packet
: peek_packet.c
48 $(CC
) -o
$@
$(CFLAGS
) peek_packet.c