2000-02-06 21:53:04 +00:00
|
|
|
--- Makefile.orig Fri Jan 21 13:47:17 2000
|
|
|
|
+++ Makefile Sat Feb 5 23:59:19 2000
|
2000-01-23 05:32:37 +00:00
|
|
|
@@ -3,7 +3,7 @@
|
|
|
|
#
|
|
|
|
# $Id: Makefile,v 1.10 2000/01/21 21:46:41 nwinton Exp nwinton $
|
2000-01-09 08:15:42 +00:00
|
|
|
|
2000-01-23 05:32:37 +00:00
|
|
|
-OS =
|
|
|
|
+OS = freebsd
|
|
|
|
|
|
|
|
###
|
|
|
|
### Locations of tools, libraries and installation directories.
|
2000-02-06 21:53:04 +00:00
|
|
|
@@ -17,33 +17,34 @@
|
2000-01-23 05:32:37 +00:00
|
|
|
CC_win32 = /gcc-2.95/bin/gcc
|
|
|
|
CC_linux = gcc
|
|
|
|
CC_solaris = gcc
|
2000-02-06 21:53:04 +00:00
|
|
|
-CC = $(CC_$(OS))
|
2000-01-23 05:32:37 +00:00
|
|
|
+CC_freebsd = cc
|
2000-02-06 21:53:04 +00:00
|
|
|
+CC ?= $(CC_$(OS))
|
2000-01-23 05:32:37 +00:00
|
|
|
|
|
|
|
# Optimise/debug compilation
|
2000-02-06 21:53:04 +00:00
|
|
|
|
|
|
|
#OPTIM = -Wall -g
|
|
|
|
-OPTIM = -Wall -O
|
|
|
|
+OPTIM = -Wall
|
2000-01-09 08:15:42 +00:00
|
|
|
|
|
|
|
# Location of gmp include and library
|
|
|
|
|
|
|
|
-GMPINC = -I../gmp-2.0.2
|
|
|
|
-GMPLIB = ../gmp-2.0.2/libgmp.a
|
2000-01-23 05:32:37 +00:00
|
|
|
+GMPINC =
|
2000-01-09 08:15:42 +00:00
|
|
|
+GMPLIB = -lgmp
|
|
|
|
|
|
|
|
# Location of Blowfish include and library
|
|
|
|
|
|
|
|
-BFINC = -I../blowfish
|
|
|
|
-BFLIB = ../blowfish/libblowfish.a
|
2000-02-06 21:53:04 +00:00
|
|
|
+BFINC = -I${OPENSSLINC} -I${OPENSSLINC}/openssl
|
|
|
|
+BFLIB = ${OPENSSLLIB}/libcrypto.a
|
2000-01-09 08:15:42 +00:00
|
|
|
|
|
|
|
# Location of zlib include and library
|
|
|
|
|
|
|
|
-ZINC = -I../zlib-1.1.3
|
|
|
|
-ZLIB = ../zlib-1.1.3/libz.a
|
|
|
|
+ZINC =
|
|
|
|
+ZLIB = -lz
|
|
|
|
|
|
|
|
# Location of bzlib include and library
|
|
|
|
# Set these empty if you don't want bzib2 support
|
|
|
|
|
|
|
|
-BZINC = -I../bzip2-0.9.5d
|
|
|
|
-BZLIB = ../bzip2-0.9.5d/libbz2.a
|
2000-02-06 21:53:04 +00:00
|
|
|
+BZINC = -I${LOCALBASE}/include
|
|
|
|
+BZLIB = ${LOCALBASE}/lib/libbz2.a
|
2000-01-23 05:32:37 +00:00
|
|
|
#
|
|
|
|
# Tools needed for Perl "POD"-format documentation conversion.
|
|
|
|
#
|
|
|
|
@@ -90,6 +91,7 @@
|
|
|
|
DEFINES_win32 = # Win32
|
|
|
|
DEFINES_linux = -D_REENTRANT -DHAVE_PTHREADS # Linux
|
|
|
|
DEFINES_solaris = -D_REENTRANT -DHAVE_PTHREADS # Solaris
|
|
|
|
+DEFINES_freebsd = -D_REENTRANT # FreeBSD
|
|
|
|
DEFINES = $(DEFINES_$(OS))
|
2000-01-09 08:15:42 +00:00
|
|
|
|
|
|
|
# Suffix for executables
|
2000-01-23 05:32:37 +00:00
|
|
|
@@ -101,6 +103,7 @@
|
2000-01-09 08:15:42 +00:00
|
|
|
|
2000-01-23 05:32:37 +00:00
|
|
|
OSLIBS_win32 = -lwsock32 -lwinmm # Win32
|
|
|
|
OSLIBS_linux = -lpthread # Linux
|
|
|
|
+OSLIBS_freebsd = # FreeBSD
|
|
|
|
OSLIBS_solaris = -lsocket -lnsl -lthread # Solaris
|
|
|
|
OSLIBS = $(OSLIBS_$(OS))
|
2000-01-09 08:15:42 +00:00
|
|
|
|
2000-02-06 21:53:04 +00:00
|
|
|
@@ -116,7 +119,8 @@
|
|
|
|
#### You REALLY shouldn't have to modify anything beyond here ...
|
|
|
|
####
|
|
|
|
|
|
|
|
-CFLAGS = $(OPTIM) $(DEFINES) -I. $(GMPINC) $(BFINC) $(ZINC) $(BZINC)
|
|
|
|
+CFLAGS ?= -O
|
|
|
|
+CFLAGS += $(OPTIM) $(DEFINES) -I. $(GMPINC) $(BFINC) $(ZINC) $(BZINC)
|
|
|
|
|
|
|
|
LIBS = $(GMPLIB) $(BFLIB) $(ZLIB) $(BZLIB) $(OSLIBS)
|
|
|
|
|