1a71f31ac4
is entered PR: 21834 Submitted by: George Reid <services@nevernet.net>
37 lines
868 B
Plaintext
37 lines
868 B
Plaintext
--- Makefile.orig Sun Oct 8 18:03:19 2000
|
|
+++ Makefile Sun Oct 8 18:03:24 2000
|
|
@@ -1,24 +1,19 @@
|
|
# vlock makefile
|
|
|
|
-CC = gcc
|
|
-# remove the -DUSE_PAM, -ldl, and -lpam if you aren't using PAM
|
|
-RPM_OPT_FLAGS=-O2
|
|
-CFLAGS = $(RPM_OPT_FLAGS) -DUSE_PAM
|
|
-LDFLAGS = -ldl -lpam -lpam_misc
|
|
+CFLAGS += -DUSE_PAM
|
|
+LDFLAGS = -lpam
|
|
|
|
OBJS = vlock.o signals.o help.o terminal.o input.o
|
|
|
|
-vlock: $(OBJS)
|
|
+all: vlock
|
|
|
|
-vlock.man: vlock.1
|
|
- groff -man -Tascii vlock.1 > vlock.man
|
|
+vlock: $(OBJS)
|
|
+ cc $(OBJS) $(LDFLAGS) -o vlock
|
|
|
|
-vlock.o: vlock.h version.h
|
|
-signals.o: vlock.h
|
|
-help.o: vlock.h
|
|
-terminal.o: vlock.h
|
|
-input.o: vlock.h
|
|
+install:
|
|
+ /usr/bin/install -c -s -o root -g wheel -m 4555 vlock /usr/local/bin/vlock
|
|
+ /usr/bin/install -c -o root -g wheel -m 444 vlock.1 /usr/local/man/man1
|
|
|
|
clean:
|
|
- rm -f $(OBJS) vlock core core.vlock
|
|
+ rm -f $(OBJS) vlock vlock.core
|
|
|