freebsd-dev/secure/lib/libcrypto/Makefile.inc
2000-01-16 05:19:27 +00:00

26 lines
549 B
Makefile

# $FreeBSD$
LCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl/crypto
CFLAGS+= -DTERMIOS -DANSI_SOURCE -DNO_IDEA -I${LCRYPTO_SRC} -I${.OBJDIR}
.if ${MACHINE_ARCH} == "i386"
CFLAGS+= -DL_ENDIAN
# -DBN_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM - XXX notyet
CFLAGS+= -DDEVRANDOM=\"/dev/urandom\"
.else
.if ${MACHINE_ARCH} == "alpha"
# no ENDIAN stuff defined for alpha (64-bit)
.endif
.endif
LOCALBASE?= /usr/local
.if !exists(${LOCALBASE}/lib/librsaref.a)
CFLAGS+= -DNO_RSA -DNO_SSL2
WITH_RSA= NO
.else
CFLAGS+= -DRSAref
RSAREF= YES
WITH_RSA= YES
.endif