summaryrefslogtreecommitdiff
path: root/security/apg/files/patch-aa
blob: 2d1bcbb54e336b73a005db28cf338e1e74ecaa17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- Makefile	Tue Feb 27 08:24:14 2001
+++ Makefile	Mon Apr  9 14:05:45 2001
@@ -1,10 +1,10 @@
 # You can modify CC variable if you have compiler other than GCC
 # But the code was designed and tested with GCC
-CC = gcc
+CC?=		gcc
 
 # compilation flags
 # You should comment the line below for AIX+native cc
-FLAGS = -Wall
+CFLAGS?=	-Wall
 
 # libraries
 LIBS = -lcrypt
@@ -15,7 +15,8 @@
 CRYPTED_PASS = APG_USE_CRYPT
 
 # Install dirs
-INSTALL_PREFIX = /usr/local
+PREFIX?=	/usr/local
+INSTALL_PREFIX = ${PREFIX}
 APG_BIN_DIR = /bin
 APG_MAN_DIR = /man/man1
 APGD_BIN_DIR = /sbin
@@ -50,10 +51,10 @@
 cygwin: standalone
 
 cliserv: ${SOURCES} ${HEADERS}
-	${CC} ${FLAGS} ${CS_LIBS} -DCLISERV -o ${CS_PROGNAME} ${SOURCES}
+	${CC} ${CFLAGS} ${CS_LIBS} -DCLISERV -o ${CS_PROGNAME} ${SOURCES}
 
 standalone: ${SOURCES} ${HEADERS}
-	${CC} ${FLAGS} ${LIBS} -D${CRYPTED_PASS} -o ${PROGNAME} ${SOURCES}
+	${CC} ${CFLAGS} ${LIBS} -D${CRYPTED_PASS} -o ${PROGNAME} ${SOURCES}
 
 strip:
 	strip ${PROGNAME}