Makefile.inc revision 59426
1# $FreeBSD: head/secure/lib/libcrypto/Makefile.inc 59426 2000-04-20 07:26:46Z kris $ 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 16WITH_RSA?= YES 17 18SRCS+= buildinf.h 19CLEANFILES+= buildinf.h 20CLEANDIRS+= openssl 21 22# this bogus dependency was the easiest way to get the openssl/ 23# directory populated 24buildinf.h: openssl/opensslconf.h openssl/headers-copied 25 ( echo "#ifndef MK1MF_BUILD"; \ 26 echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \ 27 echo " #define CFLAGS \"$(CC)\""; \ 28 echo " #define PLATFORM \"`uname -s`-`uname -m`\""; \ 29 echo " #define DATE \"`LC_TIME=C date`\""; \ 30 echo "#endif" ) > ${.TARGET} 31 32openssl/opensslconf.h: ../libcrypto/opensslconf-${MACHINE_ARCH}.h 33 @test -d openssl || mkdir -p openssl 34 cp ${.OODATE} ${.TARGET} 35 36openssl/headers-copied: 37 @test -d openssl || mkdir -p openssl 38 ${INSTALL} ${COPY} -m 444 ${CRYPTO_HDRS} ${EXTRA_HDRS} openssl 39 @touch ${.TARGET} 40