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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#
# $Header: /cvsroot/aolserver/nsopenssl/Makefile,v 1.18 2002/04/24 02:42:19 scottg Exp $
#
# nsopenssl --
#
# SSLv2, SSLv3, TLSv1 module using OpenSSL.
#
ifdef INST
NSHOME ?= $(INST)
else
NSHOME ?= ../aolserver
endif
MOD = nsopenssl.so
OBJS = nsopenssl.o config.o init.o ssl.o thread.o tclcmds.o
HDRS = nsopenssl.h tclcmds.h config.h thread.h
TCLMOD = https.tcl
ifdef BSAFE
MODLIBS = -L$(OPENSSL)/lib -L$(BSAFE)/lib -lssl -lcrypto \
-lBSAFEglue -lcrypto -lbsafe -lBSAFEglue
else
MODLIBS = -L$(OPENSSL)/lib -lssl -lcrypto
endif
CFLAGS += -I$(OPENSSL)/include
include $(NSHOME)/include/Makefile.module
nsopenssl.h: check-env
.PHONY: check-env
check-env:
@if [ "$(OPENSSL)" = "" ]; then \
echo "** "; \
echo "** OPENSSL variable not set."; \
echo "** nsopenssl.so will not be built."; \
echo "** Usage: make OPENSSL=/path/to/openssl"; \
echo "** Usage: make install OPENSSL=/path/to/openssl INST=/path/to/aolserver"; \
echo "** "; \
exit 1; \
fi
# This overrides the install directive in $(NSHOME)/include/Makefile.module
install: all
$(RM) $(INSTBIN)/$(MOD)
$(CP) $(MOD) $(INSTBIN)
$(MKDIR) $(INSTTCL)
$(CP) $(TCLMOD) $(INSTTCL)
#################################################################
# NOTE!!! Solaris users *might* need the following,
# but you'll need to modify it to point to where
# your libgcc.a lives. Replace the MODLIBS above with
# this:
#
# MODLIBS = -L$(OPENSSL)/lib -lssl -lcrypto \
# -L/usr/local/products/gcc-2.95/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95 -lgcc
#################################################################
# For development purposes, put the GCCOPT above somewhere
# to turn off 'no-unused' so gcc will report unused funcs
# and variables.
#
# GCCOPT = $(GCCOPTIMIZE) -fPIC -Wall
|