Home | History | Annotate | Line # | Download | only in bin
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 2023/05/07 16:19:24 christos 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.11 2023/05/07 16:19:24 christos 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+= \
     31 asn1parse.c \
     32 ca.c \
     33 ciphers.c \
     34 cmp.c \
     35 cms.c \
     36 crl.c \
     37 crl2pkcs7.c \
     38 dgst.c \
     39 dhparam.c \
     40 dsa.c \
     41 dsaparam.c \
     42 ec.c \
     43 ecparam.c \
     44 enc.c \
     45 engine.c \
     46 errstr.c \
     47 fipsinstall.c \
     48 gendsa.c \
     49 genpkey.c \
     50 genrsa.c \
     51 info.c \
     52 kdf.c \
     53 list.c \
     54 mac.c \
     55 nseq.c \
     56 ocsp.c \
     57 openssl.c \
     58 passwd.c \
     59 pkcs12.c \
     60 pkcs7.c \
     61 pkcs8.c \
     62 pkey.c \
     63 pkeyparam.c \
     64 pkeyutl.c \
     65 prime.c \
     66 progs.c \
     67 rand.c \
     68 rehash.c \
     69 req.c \
     70 rsa.c \
     71 rsautl.c \
     72 s_client.c \
     73 s_server.c \
     74 s_time.c \
     75 sess_id.c \
     76 smime.c \
     77 speed.c \
     78 spkac.c \
     79 srp.c \
     80 storeutl.c \
     81 ts.c \
     82 verify.c \
     83 version.c \
     84 x509.c \
     85 
     86 CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC} -I${.CURDIR}
     87 CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/apps/include
     88 
     89 PROGDPLIBSSTATIC=yes
     90 PROGDPLIBS+=    apps ${OPENSSLSRC}/../lib/libapps
     91 PROGDPLIBS+=    ssl ${OPENSSLSRC}/../lib/libssl
     92 PROGDPLIBS+=    crypto ${OPENSSLSRC}/../lib/libcrypto
     93 
     94 LDADD+=	-lcrypt
     95 DPADD+=	${LIBCRYPT}
     96 
     97 CRYPTODIST=	${NETBSDSRCDIR}/crypto
     98 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
     99 .PATH:	${OPENSSLSRC}/apps
    100 
    101 .PATH:	${OPENSSLSRC}/engines
    102 SRCS+=	e_padlock.c
    103 
    104 #LINKS=	openssl verify \
    105 #	openssl asn1pars \
    106 #	openssl req \
    107 #	openssl dgst \
    108 #	openssl dh \
    109 #	openssl dhparam \
    110 #	openssl enc \
    111 #	openssl passwd \
    112 #	openssl gendh \
    113 #	openssl errstr \
    114 #	openssl ca \
    115 #	openssl crl \
    116 #	openssl rsa \
    117 #	openssl rsautl \
    118 #	openssl dsa \
    119 #	openssl dsaparam \
    120 #	openssl x509 \
    121 #	openssl genrsa \
    122 #	openssl gendsa \
    123 #	openssl s_server \
    124 #	openssl s_client \
    125 #	openssl speed \
    126 #	openssl s_time \
    127 #	openssl version \
    128 #	openssl pkcs7 \
    129 #	openssl crl2pkcs7 \
    130 #	openssl sess_id \
    131 #	openssl ciphers \
    132 #	openssl nseq \
    133 #	openssl pkcs12 \
    134 #	openssl pkcs8 \
    135 #	openssl spkac \
    136 #	openssl smime \
    137 #	openssl rand \
    138 #	openssl engine \
    139 #	openssl ocsp
    140 
    141 .if ${MKSHARE} != "no"
    142 FILES=  CA.pl openssl.cnf
    143 FILESBUILD= yes
    144 FILESDIR=/usr/share/examples/openssl
    145 
    146 CA.pl:	CA.pl.in
    147 	${_MKTARGET_CREATE}
    148 	rm -f ${.TARGET}
    149 	${TOOL_SED} \
    150 	    -e 's@{- \$$config{hashbangperl} -}@/usr/bin/env perl@' \
    151 	    ${.ALLSRC} > ${.TARGET}
    152 
    153 CLEANFILES+=CA.pl
    154 
    155 .endif
    156 
    157 .include <bsd.prog.mk>
    158