5 override CFLAGS
+= -Isrc
-DPREFIX
="\"$(PREFIX)"\"
9 VLOCK_VERSION
= "2.1 alpha1"
21 vlock
: vlock.sh config.mk Makefile
24 -e
's,%BOURNE_SHELL%,$(BOURNE_SHELL),' \
25 -e
's,%PREFIX%,$(PREFIX),' \
26 -e
's,%VLOCK_VERSION%,$(VLOCK_VERSION),' \
30 ifneq ($(USE_ROOT_PASS
),y
)
31 vlock-current
: override CFLAGS
+= -DNO_ROOT_PASS
34 ifeq ($(AUTH_METHOD
),pam
)
35 vlock-current
: override LDFLAGS
+= $(PAM_LIBS
)
38 ifeq ($(AUTH_METHOD
),shadow
)
39 vlock-current
: override LDFLAGS
+= -lcrypt
42 vlock-current
: vlock-current.c prompt.c auth-
$(AUTH_METHOD
).c
45 vlock-nosysrq vlock-all
: override LDFLAGS
+= $(PAM_LIBS
)
46 vlock-nosysrq vlock-all
: override CFLAGS
+= -DUSE_PAM
54 else # VLOCK_GROUP is defined
61 install: install-programs install-man
63 .PHONY
: install-programs
64 install-programs
: $(PROGRAMS
)
65 $(INSTALL
) -D
-m
755 -o root
-g
$(ROOT_GROUP
) vlock
$(DESTDIR
)$(PREFIX
)/bin
/vlock
66 $(INSTALL
) -D
-m
4711 -o root
-g
$(ROOT_GROUP
) vlock-current
$(DESTDIR
)$(PREFIX
)/sbin
/vlock-current
67 $(INSTALL
) -D
-m
755 -o root
-g
$(ROOT_GROUP
) vlock-all
$(DESTDIR
)$(PREFIX
)/sbin
/vlock-all
68 $(INSTALL
) -D
-m
$(VLOCK_MODE
) -o root
-g
$(VLOCK_GROUP
) vlock-nosysrq
$(DESTDIR
)$(PREFIX
)/sbin
/vlock-nosysrq
69 $(INSTALL
) -D
-m
$(VLOCK_MODE
) -o root
-g
$(VLOCK_GROUP
) vlock-new
$(DESTDIR
)$(PREFIX
)/sbin
/vlock-new
73 $(INSTALL
) -D
-m
644 -o root
-g
$(ROOT_GROUP
) man
/vlock
.1 $(DESTDIR
)$(PREFIX
)/share
/man
/man1
/vlock
.1
74 $(INSTALL
) -D
-m
644 -o root
-g
$(ROOT_GROUP
) man
/vlock-current
.8 $(DESTDIR
)$(PREFIX
)/share
/man
/man8
/vlock-current
.8
75 $(INSTALL
) -D
-m
644 -o root
-g
$(ROOT_GROUP
) man
/vlock-all
.8 $(DESTDIR
)$(PREFIX
)/share
/man
/man8
/vlock-all
.8
76 $(INSTALL
) -D
-m
644 -o root
-g
$(ROOT_GROUP
) man
/vlock-new
.8 $(DESTDIR
)$(PREFIX
)/share
/man
/man8
/vlock-new
.8
77 $(INSTALL
) -D
-m
644 -o root
-g
$(ROOT_GROUP
) man
/vlock-nosysrq
.8 $(DESTDIR
)$(PREFIX
)/share
/man
/man8
/vlock-nosysrq
.8