summaryrefslogtreecommitdiffstats
path: root/secure/lib/librsausa/Makefile
blob: 9fed9eb7de5594635c7b029472336375c8914037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $FreeBSD$

.include "../libcrypto/Makefile.inc"

# Don't blame kris.. -peter
MAINTAINER=	kris

LIB=		rsaUSA
SHLIB_MAJOR=	1

CFLAGS+=	-I${.OBJDIR}

# rsaref
SRCS+=	rsar_err.c rsaref.c rsaref_stubs.c

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 evp/evp.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 ../rsaref/rsaref.h \
	stack/safestack.h sha/sha.h stack/stack.h tmdiff.h txt_db/txt_db.h \
	x509/x509.h x509/x509_vfy.h x509v3/x509v3.h

beforedepend: headers ${.OBJDIR}/openssl/opensslconf.h 

DPADD+=	${.OBJDIR}/openssl/opensslconf.h

CLEANDIRS+=	${.OBJDIR}/openssl

${.OBJDIR}/openssl/opensslconf.h: ../libcrypto/opensslconf-${MACHINE_ARCH}.h
	@test -d ${.OBJDIR}/openssl || mkdir -p ${.OBJDIR}/openssl; \
	cp ${.OODATE} ${.TARGET}

headers:
	@test -d ${.OBJDIR}/openssl || mkdir -p ${.OBJDIR}/openssl; \
	for i in ${HDRS}; do \
		${INSTALL} ${COPY} -m 444 ${LCRYPTO_SRC}/$$i \
			${.OBJDIR}/openssl; \
	done

.PATH:	${LCRYPTO_SRC}/../rsaref

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud