--- Makefile.orig	Sun Apr 24 10:57:44 2005
+++ Makefile	Sun Apr 24 10:58:44 2005
@@ -13,7 +13,7 @@
 #
 # You should comment the line below ('LIBS= -lcrypt')for QNX RTP
 # 6.1.0, OpenBSD 2.8 and above, WIN32 (+MinGW)
-LIBS = -lcrypt
+LIBS = -lcrypto
 LIBM = -lm
 # Use lines below for cygwin
 # LIBS = 
@@ -39,11 +39,11 @@
 ##################################################################
 # Directories
 # Install dirs
-INSTALL_PREFIX = /usr/local
+INSTALL_PREFIX = __DESTROOT__
 APG_BIN_DIR = /bin
-APG_MAN_DIR = /man/man1
+APG_MAN_DIR = /share/man/man1
 APGD_BIN_DIR = /sbin
-APGD_MAN_DIR = /man/man8
+APGD_MAN_DIR = /share/man/man8
 
 ####################################################################
 # If you plan to install APG daemon you should look at lines below #
