Makefile.inc revision 57412
1# $FreeBSD: head/secure/lib/libcrypto/Makefile.inc 57412 2000-02-24 10:06:57Z markm $
2
3LCRYPTO_SRC=	${.CURDIR}/../../../crypto/openssl/crypto
4CFLAGS+= -DTERMIOS -DANSI_SOURCE -DNO_IDEA -I${LCRYPTO_SRC} -I${.OBJDIR}
5
6.if ${MACHINE_ARCH} == "i386"
7CFLAGS+= -DL_ENDIAN
8# -DBN_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM - XXX notyet
9CFLAGS+= -DDEVRANDOM=\"/dev/urandom\"
10.else
11.if ${MACHINE_ARCH} == "alpha"
12# no ENDIAN stuff defined for alpha (64-bit)
13.endif
14.endif
15
16LOCALBASE?=	/usr/local
17
18.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != NO
19.if !exists(${LOCALBASE}/lib/librsaref.a)
20CFLAGS+= -DNO_RSA -DNO_SSL2
21WITH_RSA= NO
22.else
23CFLAGS+= -DRSAref
24RSAREF= YES
25WITH_RSA= YES
26.endif
27.endif
28