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