4c92852a80
we're ELF now, and there are many missing checks against OBJECT_FMT. if we ever consider switching, the we can figure out what new ones we need but for now it's just clutter. this doesn't remove any of the support for exec_aout or any actually required-for-boot a.out support, only the ability to build a netbsd release in a.out format. ie, most of this code has been dead for over a decade. i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari, amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers the 5 MACHINE_ARCH's affected, and all the other arch code touched. it also includes some actual run-time testing of sparc, i386 and shark, and i performed binary comparison upon amiga and x68k as well. some minor details relevant: - move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them down to only the parts ldconfig needs - remove various unused source files - switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
117 lines
3.4 KiB
Makefile
117 lines
3.4 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2010/07/06 05:59:50 mrg Exp $
|
|
|
|
# RCSid:
|
|
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
|
|
#
|
|
# @(#) Copyright (c) 1994 Simon J. Gerraty
|
|
#
|
|
# This file is provided in the hope that it will
|
|
# be of use. There is absolutely NO WARRANTY.
|
|
# Permission to copy, redistribute or otherwise
|
|
# use this file is hereby granted provided that
|
|
# the above copyright notice and this notice are
|
|
# left intact.
|
|
#
|
|
# Please send copies of changes and bug-fixes to:
|
|
# sjg@quick.com.au
|
|
#
|
|
|
|
LIB= crypto
|
|
USE_FORT?= yes # cryptographic software
|
|
USE_SHLIBDIR= yes
|
|
USE_FIPS= no
|
|
|
|
.include <bsd.own.mk>
|
|
.include <bsd.shlib.mk>
|
|
.include <bsd.sys.mk> # for HOST_SH
|
|
|
|
# XXX There's a bit of work to do before we can enable warnings.
|
|
WARNS=0
|
|
|
|
CPPFLAGS+= -Dlib${LIB} -I. -I${OPENSSLSRC}/crypto -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto/asn1 -I${OPENSSLSRC}/crypto/evp
|
|
|
|
CRYPTODIST= ${NETBSDSRCDIR}/crypto
|
|
|
|
.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
|
|
.PATH: ${OPENSSLSRC}
|
|
|
|
.include "srcs.inc"
|
|
|
|
|
|
AFLAGS+=-DELF
|
|
LIBDPLIBS+= crypt ${NETBSDSRCDIR}/lib/libcrypt
|
|
|
|
OS_VERSION!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
|
|
|
|
# XXX CFLAGS: While it would be nice to know which compiler flags
|
|
# XXX the library was built with, we don't want pathname information
|
|
# XXX for the host toolchain embedded in the image.
|
|
${SRCS}: buildinf.h
|
|
buildinf.h: Makefile
|
|
@echo "#ifndef MK1MF_BUILD" >buildinf.h
|
|
@echo "#define CFLAGS \"`${CC} -v 2>&1 | grep version`\"" >>buildinf.h
|
|
@echo "#define PLATFORM \"NetBSD-${MACHINE_ARCH}\"" >>buildinf.h
|
|
@echo "#define DATE \"NetBSD ${OS_VERSION}\"" >>buildinf.h
|
|
@echo "#endif" >>buildinf.h
|
|
|
|
CLEANFILES+= buildinf.h
|
|
|
|
# This list is built from the contents of the include/openssl
|
|
# directory in the OpenSSL source distribution.
|
|
INCS+= aes.h asn1.h asn1_mac.h asn1t.h bio.h blowfish.h bn.h \
|
|
buffer.h cast.h cms.h comp.h conf.h conf_api.h crypto.h des.h \
|
|
dh.h dsa.h dso.h e_os2.h ebcdic.h ec.h ecdh.h ecdsa.h engine.h \
|
|
err.h evp.h hmac.h krb5_asn.h lhash.h md2.h md4.h md5.h modes.h \
|
|
obj_mac.h objects.h ocsp.h opensslconf.h opensslv.h ossl_typ.h \
|
|
pem.h pem2.h pkcs12.h pkcs7.h rand.h rc2.h rc4.h ripemd.h \
|
|
rsa.h safestack.h sha.h stack.h store.h symhacks.h ts.h txt_db.h \
|
|
ui.h ui_compat.h x509.h x509_vfy.h x509v3.h pqueue.h camellia.h
|
|
# des_old.h
|
|
|
|
# IDEA - patented, but we install the header anyways
|
|
INCS+= idea.h
|
|
|
|
# RC5 - patented, but we install the header anyways
|
|
INCS+= rc5.h
|
|
|
|
# MDC2 - patented, but we install the header anyways
|
|
INCS+= mdc2.h
|
|
|
|
.if (${USE_FIPS} != "no")
|
|
# FIPS
|
|
# This part is always included, because OpenSSL does not protect
|
|
# The FIPS include files
|
|
.PATH: ${OPENSSLSRC}/fips ${OPENSSLSRC}/fips/rand
|
|
INCS+= fips.h fips_rand.h
|
|
.endif
|
|
|
|
.if (${USE_FIPS} != "no")
|
|
CPPFLAGS+=-DOPENSSL_FIPS
|
|
.PATH: ${OPENSSLSRC}/fips/aes
|
|
SRCS+=fips_aes_core.c fips_aes_selftest.c
|
|
.PATH: ${OPENSSLSRC}/fips/des
|
|
SRCS+=fips_des_enc.c fips_des_selftest.c fips_set_key.c
|
|
# asm/fips-dx86-elf.s
|
|
.PATH: ${OPENSSLSRC}/fips/dh
|
|
SRCS+=fips_dh_check.c fips_dh_gen.c fips_dh_key.c
|
|
.PATH: ${OPENSSLSRC}/fips/dsa
|
|
SRCS+=fips_dsa_ossl.c fips_dsa_gen.c fips_dsa_selftest.c
|
|
#.PATH: ${OPENSSLSRC}/fips/rand
|
|
SRCS+=fips_rand.c
|
|
.PATH: ${OPENSSLSRC}/fips/rsa
|
|
SRCS+=fips_rsa_eay.c fips_rsa_gen.c fips_rsa_selftest.c
|
|
SRCS+=fips_sha1dgst.c fips_sha1_selftest.c
|
|
# asm/sx86-elf.s
|
|
.PATH: ${OPENSSLSRC}/fips/sha1
|
|
#.PATH: ${OPENSSLSRC}/fips
|
|
SRCS+=fips.c fips_err_wrapper.c
|
|
|
|
SRCS+=rc5_skey.c i_skey.c mdc2dgst.c
|
|
.endif
|
|
|
|
COPTS.eng_padlock.c = -Wno-stack-protector
|
|
|
|
INCSDIR=/usr/include/openssl
|
|
|
|
.include <bsd.lib.mk>
|