Lines 1-6
Link Here
|
1 |
--- Makefile 20 Sep 2002 07:24:50 -0000 1.1.1.4 |
1 |
--- Makefile.orig Thu Aug 7 17:40:39 2003 |
2 |
+++ Makefile 20 Sep 2002 07:27:21 -0000 1.6 |
2 |
+++ Makefile Sat Aug 23 00:18:35 2003 |
3 |
@@ -1,12 +1,12 @@ |
3 |
@@ -44,10 +44,12 @@ |
|
|
4 |
# If you want to use cracklib for password quality check then you |
5 |
# must uncomment the folowing 4 lines (you must not do this for WIN32) |
6 |
# |
7 |
-#CRACKLIB_DICTPATH = "/usr/local/lib/pw_dict" |
8 |
-#STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib |
9 |
-#CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib |
10 |
-#APG_CLIBS += -lcrack |
11 |
+.if defined(WITH_CRACKLIB) |
12 |
+CRACKLIB_DICTPATH = "${LOCALBASE}/libdata/cracklib/pw_dict" |
13 |
+STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I${LOCALBASE}/include -L${LOCALBASE}/lib |
14 |
+CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I${LOCALBASE}/include -L${LOCALBASE}/lib |
15 |
+APG_CLIBS += -lcrack |
16 |
+.endif |
17 |
|
18 |
################################################################## |
19 |
# Support for ANSI X9.17/SHA1 PRNG |
20 |
@@ -60,12 +62,12 @@ |
4 |
################################################################## |
21 |
################################################################## |
5 |
# You can modify CC variable if you have compiler other than GCC |
22 |
# You can modify CC variable if you have compiler other than GCC |
6 |
# But the code was designed and tested with GCC |
23 |
# But the code was designed and tested with GCC |
Lines 10-44
Link Here
|
10 |
################################################################## |
27 |
################################################################## |
11 |
# Compilation flags |
28 |
# Compilation flags |
12 |
# You should comment the line below for AIX+native cc |
29 |
# You should comment the line below for AIX+native cc |
13 |
-FLAGS = -Wall |
30 |
-CFLAGS = -Wall |
14 |
+CFLAGS ?= -Wall |
31 |
+CFLAGS ?= -Wall |
15 |
|
32 |
|
16 |
################################################################## |
33 |
#################################################################### |
17 |
# Libraries |
34 |
# If you plan to install APG daemon you should look at lines below # |
18 |
@@ -37,7 +37,8 @@ |
35 |
@@ -135,7 +137,7 @@ |
19 |
################################################################## |
36 |
${CC} ${CFLAGS} -DCLISERV ${CLISERV_OPTIONS} -o ${CS_PROGNAME} ${SOURCES} ${APG_CS_CLIBS} |
20 |
# Directories |
|
|
21 |
# Install dirs |
22 |
-INSTALL_PREFIX = /usr/local |
23 |
+PREFIX ?= /usr/local |
24 |
+INSTALL_PREFIX = ${PREFIX} |
25 |
APG_BIN_DIR = /bin |
26 |
APG_MAN_DIR = /man/man1 |
27 |
APGD_BIN_DIR = /sbin |
28 |
@@ -88,13 +89,13 @@ |
29 |
cygwin: standalone |
30 |
|
31 |
apg: |
32 |
- ${CC} ${FLAGS} -D${CRYPTED_PASS} -D${USE_SHA} -o ${PROGNAME} ${SOURCES} ${LIBS} ${LIBM} |
33 |
+ ${CC} ${CFLAGS} -D${CRYPTED_PASS} -D${USE_SHA} -o ${PROGNAME} ${SOURCES} ${LIBS} ${LIBM} |
34 |
|
35 |
apgd: |
36 |
- ${CC} ${FLAGS} -DCLISERV -D${USE_SHA} -o ${CS_PROGNAME} ${SOURCES} ${CS_LIBS} ${LIBM} |
37 |
+ ${CC} ${CFLAGS} -DCLISERV -D${USE_SHA} -o ${CS_PROGNAME} ${SOURCES} ${CS_LIBS} ${LIBM} |
38 |
|
37 |
|
39 |
apgbfm: |
38 |
apgbfm: |
40 |
- ${CC} ${FLAGS} -o ${BFM_PROGNAME} ${BFM_SOURCES} ${LIBM} |
39 |
- ${CC} ${FLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS} |
41 |
+ ${CC} ${CFLAGS} -o ${BFM_PROGNAME} ${BFM_SOURCES} ${LIBM} |
40 |
+ ${CC} ${CFLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS} |
42 |
|
41 |
|
43 |
strip: |
42 |
strip: |
44 |
strip ${PROGNAME} |
43 |
strip ${PROGNAME} |