2000-01-14 05:49:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
LCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl/crypto
|
2000-06-24 06:50:58 +00:00
|
|
|
CFLAGS+= -DTERMIOS -DANSI_SOURCE -I${LCRYPTO_SRC} -I${.OBJDIR}
|
2000-07-14 09:18:21 +00:00
|
|
|
.if !defined(MAKE_IDEA) || ${MAKE_IDEA} != YES
|
2000-06-24 06:50:58 +00:00
|
|
|
CFLAGS+= -DNO_IDEA
|
|
|
|
.endif
|
2000-01-14 05:49:29 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2001-02-19 03:59:05 +00:00
|
|
|
CFLAGS+= -DL_ENDIAN
|
2002-03-16 15:12:13 +00:00
|
|
|
.if !defined(NOPERL) && !defined(NO_PERL)
|
2001-02-19 03:59:05 +00:00
|
|
|
CFLAGS+= -DSHA1_ASM -DBN_ASM -DMD5_ASM -DRMD160_ASM
|
|
|
|
.endif
|
2000-05-15 23:29:03 +00:00
|
|
|
.elif ${MACHINE_ARCH} == "alpha"
|
2000-01-14 05:49:29 +00:00
|
|
|
# no ENDIAN stuff defined for alpha (64-bit)
|
|
|
|
.endif
|
|
|
|
|
2000-02-25 08:18:43 +00:00
|
|
|
WITH_RSA?= YES
|
2000-04-13 07:37:35 +00:00
|
|
|
|
2000-09-17 06:45:27 +00:00
|
|
|
HDRS= asn1/asn1.h asn1/asn1_mac.h bio/bio.h bf/blowfish.h bn/bn.h \
|
|
|
|
buffer/buffer.h cast/cast.h comp/comp.h conf/conf.h crypto.h \
|
|
|
|
des/des.h dh/dh.h dsa/dsa.h ../e_os.h ../e_os2.h ebcdic.h \
|
|
|
|
err/err.h hmac/hmac.h lhash/lhash.h md2/md2.h \
|
|
|
|
md5/md5.h mdc2/mdc2.h objects/objects.h opensslv.h pem/pem.h \
|
|
|
|
pem/pem2.h pkcs12/pkcs12.h pkcs7/pkcs7.h rand/rand.h rc2/rc2.h \
|
|
|
|
rc4/rc4.h rc5/rc5.h ripemd/ripemd.h rsa/rsa.h stack/safestack.h \
|
|
|
|
sha/sha.h stack/stack.h tmdiff.h txt_db/txt_db.h x509/x509.h \
|
2001-02-19 03:59:05 +00:00
|
|
|
x509/x509_vfy.h x509v3/x509v3.h symhacks.h objects/obj_mac.h \
|
|
|
|
md4/md4.h dso/dso.h conf/conf_api.h
|
2000-09-17 06:45:27 +00:00
|
|
|
|
|
|
|
.if defined(MAKE_IDEA) && ${MAKE_IDEA} == YES
|
2000-11-13 02:21:38 +00:00
|
|
|
HDRS+= idea/idea.h
|
2000-09-17 06:45:27 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.for h in ${HDRS}
|
|
|
|
CRYPTO_HDRS+= ${LCRYPTO_SRC}/${h}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
SRCS+= buildinf.h openssl/opensslconf.h openssl/evp.h
|
|
|
|
CLEANFILES+= buildinf.h openssl/opensslconf.h openssl/evp.h
|
2000-04-13 07:37:35 +00:00
|
|
|
CLEANDIRS+= openssl
|
|
|
|
|
2000-05-15 17:28:06 +00:00
|
|
|
buildinf.h:
|
2000-04-13 07:37:35 +00:00
|
|
|
( echo "#ifndef MK1MF_BUILD"; \
|
|
|
|
echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
|
|
|
|
echo " #define CFLAGS \"$(CC)\""; \
|
|
|
|
echo " #define PLATFORM \"`uname -s`-`uname -m`\""; \
|
2001-03-02 16:52:14 +00:00
|
|
|
echo " #define DATE \"`LC_ALL=C date`\""; \
|
2000-04-13 07:37:35 +00:00
|
|
|
echo "#endif" ) > ${.TARGET}
|
|
|
|
|
2000-05-15 17:28:06 +00:00
|
|
|
# XXX: The openssl/ dependencies are not correct, in that a change in
|
|
|
|
# any of ${CRYPTO_HDRS} ${EXTRA_HDRS} will no repopulate openssl/.
|
|
|
|
# This deficiency will be fixed in a later commit.
|
|
|
|
|
2000-09-17 06:45:27 +00:00
|
|
|
.ORDER: openssl/opensslconf.h openssl/evp.h
|
2000-08-24 19:06:55 +00:00
|
|
|
|
2000-04-13 07:37:35 +00:00
|
|
|
openssl/opensslconf.h: ../libcrypto/opensslconf-${MACHINE_ARCH}.h
|
2000-05-15 17:28:06 +00:00
|
|
|
mkdir -p openssl
|
2000-04-13 07:37:35 +00:00
|
|
|
cp ${.OODATE} ${.TARGET}
|
2002-03-23 18:01:01 +00:00
|
|
|
${INSTALL} -C -m 444 ${CRYPTO_HDRS} ${EXTRA_HDRS} openssl
|
2000-08-23 11:41:01 +00:00
|
|
|
|
2000-09-17 06:45:27 +00:00
|
|
|
openssl/evp.h: ${LCRYPTO_SRC}/evp/evp.h
|
|
|
|
.if !defined(MAKE_IDEA) || ${MAKE_IDEA} != YES
|
2000-08-23 11:41:01 +00:00
|
|
|
sed '/^#ifndef NO_IDEA$$/,/^#endif$$/d' ${.OODATE} > ${.TARGET}
|
2000-09-17 06:45:27 +00:00
|
|
|
.else
|
2002-03-23 18:01:01 +00:00
|
|
|
${INSTALL} -C -m 444 ${.OODATE} ${.TARGET}
|
2000-09-17 06:45:27 +00:00
|
|
|
.endif
|