include ${TOPDIR}/rules.mk

# if you compile SSLeay yourself, change this to the base directory of the
# package (e.g. /usr/src/SSLeay)
SSLDIR=${WVPACKAGES}/ssleay

# List of include directories for SSLeay.  If none of these is yours, add
# it to the list.
SSLINC= /usr/include/ssl /usr/include/ssleay /usr/local/include/ssl \
	/usr/local/ssl/include /usr/local/ssleay/include

# List of library directories for SSLeay.  Add yours to the list.
# Don't forget the -L before each directory name!
SSLLIB= -L/usr/lib/ssl -L/usr/lib/ssleay -L/usr/local/lib/ssleay \
	-L/usr/local/ssl -L/usr/local/ssl/lib -L/usr/local/ssleay

default: all simpleconn tunnelv
all: tunnelv.a

#LIBS=${EFENCE}
#LIBS += /usr/local/mpr/libmpr.a -static
XPATH=.. ../utils ../streams ../configfile ../ipstreams \
	${SSLDIR}/include ${SSLINC}

tunnelv.a: wvcrypto.o wvtunnel.o

simpleconn: ../ipstreams/ipstreams.a ../configfile/configfile.a \
	../streams/streams.a ../utils/utils.a

tunnelv-LIBS += -L${SSLDIR} ${SSLLIB} -lcrypto
tunnelv: tunnelv.a \
	 ../ipstreams/ipstreams.a ../configfile/configfile.a \
	 ../streams/streams.a ../utils/utils.a

clean:
	rm -f simpleconn tunnelv
