23 lines
532 B
PHP
23 lines
532 B
PHP
|
# $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
|
||
|
|
||
|
.if !defined(RSA_NONCOMMERCIAL) || ${RSA_NONCOMMERCIAL} != YES
|
||
|
CFLAGS+= -DNO_RSA -DNO_SSL2
|
||
|
WITH_RSA= NO
|
||
|
.else
|
||
|
CFLAGS+= -DRSAref
|
||
|
RSAREF= YES
|
||
|
.endif
|