Home | History | Annotate | Line # | Download | only in bin
Makefile revision 1.3
      1  1.3       spz #	$NetBSD: Makefile,v 1.3 2011/06/06 13:43:48 spz Exp $
      2  1.1  christos 
      3  1.1  christos WARNS?=	2	# XXX -Wcast-qual
      4  1.1  christos 
      5  1.1  christos NOMAN=	# defined
      6  1.2  christos BINDIR=/usr/bin
      7  1.1  christos 
      8  1.1  christos .include <bsd.own.mk>
      9  1.1  christos 
     10  1.1  christos USE_FORT?= yes	# cryptographic software
     11  1.1  christos 
     12  1.1  christos # RCSid:
     13  1.3       spz #	$Id: Makefile,v 1.3 2011/06/06 13:43:48 spz Exp $
     14  1.1  christos #
     15  1.1  christos #	@(#) Copyright (c) 1995 Simon J. Gerraty
     16  1.1  christos #
     17  1.1  christos #	This file is provided in the hope that it will
     18  1.1  christos #	be of use.  There is absolutely NO WARRANTY.
     19  1.1  christos #	Permission to copy, redistribute or otherwise
     20  1.1  christos #	use this file is hereby granted provided that 
     21  1.1  christos #	the above copyright notice and this notice are
     22  1.1  christos #	left intact. 
     23  1.1  christos #      
     24  1.1  christos #	Please send copies of changes and bug-fixes to:
     25  1.1  christos #	sjg (at] quick.com.au
     26  1.1  christos #
     27  1.1  christos 
     28  1.1  christos PROG=	openssl
     29  1.1  christos 
     30  1.1  christos SRCS=	openssl.c
     31  1.1  christos SRCS+=	apps.c ecparam.c ec.c pkeyparam.c genpkey.c pkey.c pkeyutl.c ts.c cms.c
     32  1.1  christos SRCS+=	s_cb.c s_socket.c
     33  1.1  christos SRCS+=	app_rand.c
     34  1.1  christos SRCS+=	verify.c asn1pars.c req.c dgst.c dh.c dhparam.c enc.c passwd.c gendh.c errstr.c ca.c \
     35  1.1  christos 	pkcs7.c crl2p7.c crl.c \
     36  1.1  christos 	rsa.c rsautl.c dsa.c dsaparam.c \
     37  1.1  christos 	x509.c genrsa.c gendsa.c prime.c s_server.c s_client.c speed.c \
     38  1.3       spz 	s_time.c version.c sess_id.c srp.c \
     39  1.1  christos 	ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c engine.c ocsp.c
     40  1.1  christos 
     41  1.1  christos CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC}
     42  1.1  christos 
     43  1.1  christos # with normal OpenSSL, OPENSSL_NO_{IDEA,MDC2,RC5} changes ABI due to change in
     44  1.1  christos # struct/union.  we nuked all of them in our header files and it is now safe.
     45  1.1  christos .if ${MKCRYPTO_IDEA} == "no"
     46  1.1  christos CPPFLAGS+= -DOPENSSL_NO_IDEA
     47  1.1  christos .else
     48  1.1  christos LDADD+=	-lcrypto_idea
     49  1.1  christos DPADD+=	${LIBCRYPTO_IDEA}
     50  1.1  christos .endif
     51  1.1  christos .if ${MKCRYPTO_MDC2} == "no"
     52  1.1  christos CPPFLAGS+= -DOPENSSL_NO_MDC2
     53  1.1  christos .else
     54  1.1  christos LDADD+=	-lcrypto_mdc2
     55  1.1  christos DPADD+=	${LIBCRYPTO_MDC2}
     56  1.1  christos .endif
     57  1.1  christos .if ${MKCRYPTO_RC5} == "no"
     58  1.1  christos CPPFLAGS+= -DOPENSSL_NO_RC5
     59  1.1  christos .else
     60  1.1  christos LDADD+=	-lcrypto_rc5
     61  1.1  christos DPADD+=	${LIBCRYPTO_RC5}
     62  1.1  christos .endif
     63  1.1  christos 
     64  1.1  christos # this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
     65  1.1  christos LDADD+=	-lssl -lcrypto -lcrypt
     66  1.1  christos DPADD+=	${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
     67  1.1  christos 
     68  1.1  christos CRYPTODIST=	${NETBSDSRCDIR}/crypto
     69  1.1  christos .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
     70  1.1  christos .PATH:	${OPENSSLSRC}/apps
     71  1.1  christos 
     72  1.1  christos #LINKS=	openssl verify \
     73  1.1  christos #	openssl asn1pars \
     74  1.1  christos #	openssl req \
     75  1.1  christos #	openssl dgst \
     76  1.1  christos #	openssl dh \
     77  1.1  christos #	openssl dhparam \
     78  1.1  christos #	openssl enc \
     79  1.1  christos #	openssl passwd \
     80  1.1  christos #	openssl gendh \
     81  1.1  christos #	openssl errstr \
     82  1.1  christos #	openssl ca \
     83  1.1  christos #	openssl crl \
     84  1.1  christos #	openssl rsa \
     85  1.1  christos #	openssl rsautl \
     86  1.1  christos #	openssl dsa \
     87  1.1  christos #	openssl dsaparam \
     88  1.1  christos #	openssl x509 \
     89  1.1  christos #	openssl genrsa \
     90  1.1  christos #	openssl gendsa \
     91  1.1  christos #	openssl s_server \
     92  1.1  christos #	openssl s_client \
     93  1.1  christos #	openssl speed \
     94  1.1  christos #	openssl s_time \
     95  1.1  christos #	openssl version \
     96  1.1  christos #	openssl pkcs7 \
     97  1.1  christos #	openssl crl2pkcs7 \
     98  1.1  christos #	openssl sess_id \
     99  1.1  christos #	openssl ciphers \
    100  1.1  christos #	openssl nseq \
    101  1.1  christos #	openssl pkcs12 \
    102  1.1  christos #	openssl pkcs8 \
    103  1.1  christos #	openssl spkac \
    104  1.1  christos #	openssl smime \
    105  1.1  christos #	openssl rand \
    106  1.1  christos #	openssl engine \
    107  1.1  christos #	openssl ocsp
    108  1.1  christos 
    109  1.1  christos .if ${MKSHARE} != "no"
    110  1.1  christos FILES=  CA.sh CA.pl openssl.cnf
    111  1.1  christos FILESDIR=/usr/share/examples/openssl
    112  1.1  christos .endif
    113  1.1  christos 
    114  1.1  christos .include <bsd.prog.mk>
    115