Home | History | Annotate | Line # | Download | only in bin
      1  1.1.1.2  christos #	$NetBSD: Makefile,v 1.1.1.2 2023/04/18 14:19:03 christos 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.1  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.1.1.2  christos #	$Id: Makefile,v 1.1.1.2 2023/04/18 14:19:03 christos 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.1.2  christos SRCS+=	s_cb.c s_socket.c bf_prefix.c storeutl.c
     33  1.1.1.2  christos SRCS+=	app_rand.c rehash.c
     34  1.1.1.2  christos SRCS+=	verify.c asn1pars.c req.c dgst.c dhparam.c enc.c passwd.c errstr.c \
     35  1.1.1.2  christos 	opt.c ca.c \
     36      1.1  christos 	pkcs7.c crl2p7.c crl.c \
     37      1.1  christos 	rsa.c rsautl.c dsa.c dsaparam.c \
     38      1.1  christos 	x509.c genrsa.c gendsa.c prime.c s_server.c s_client.c speed.c \
     39      1.1  christos 	s_time.c version.c sess_id.c srp.c \
     40      1.1  christos 	ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c engine.c ocsp.c
     41      1.1  christos 
     42      1.1  christos CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC}
     43  1.1.1.2  christos CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include
     44      1.1  christos 
     45      1.1  christos LDADD+=	-lssl -lcrypto -lcrypt
     46      1.1  christos DPADD+=	${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
     47      1.1  christos 
     48      1.1  christos CRYPTODIST=	${NETBSDSRCDIR}/crypto
     49      1.1  christos .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
     50      1.1  christos .PATH:	${OPENSSLSRC}/apps
     51      1.1  christos 
     52  1.1.1.2  christos .PATH:	${OPENSSLSRC}/engines
     53  1.1.1.2  christos SRCS+=	e_padlock.c
     54  1.1.1.2  christos 
     55      1.1  christos #LINKS=	openssl verify \
     56      1.1  christos #	openssl asn1pars \
     57      1.1  christos #	openssl req \
     58      1.1  christos #	openssl dgst \
     59      1.1  christos #	openssl dh \
     60      1.1  christos #	openssl dhparam \
     61      1.1  christos #	openssl enc \
     62      1.1  christos #	openssl passwd \
     63      1.1  christos #	openssl gendh \
     64      1.1  christos #	openssl errstr \
     65      1.1  christos #	openssl ca \
     66      1.1  christos #	openssl crl \
     67      1.1  christos #	openssl rsa \
     68      1.1  christos #	openssl rsautl \
     69      1.1  christos #	openssl dsa \
     70      1.1  christos #	openssl dsaparam \
     71      1.1  christos #	openssl x509 \
     72      1.1  christos #	openssl genrsa \
     73      1.1  christos #	openssl gendsa \
     74      1.1  christos #	openssl s_server \
     75      1.1  christos #	openssl s_client \
     76      1.1  christos #	openssl speed \
     77      1.1  christos #	openssl s_time \
     78      1.1  christos #	openssl version \
     79      1.1  christos #	openssl pkcs7 \
     80      1.1  christos #	openssl crl2pkcs7 \
     81      1.1  christos #	openssl sess_id \
     82      1.1  christos #	openssl ciphers \
     83      1.1  christos #	openssl nseq \
     84      1.1  christos #	openssl pkcs12 \
     85      1.1  christos #	openssl pkcs8 \
     86      1.1  christos #	openssl spkac \
     87      1.1  christos #	openssl smime \
     88      1.1  christos #	openssl rand \
     89      1.1  christos #	openssl engine \
     90      1.1  christos #	openssl ocsp
     91      1.1  christos 
     92      1.1  christos .if ${MKSHARE} != "no"
     93  1.1.1.2  christos FILES=  CA.pl openssl.cnf
     94  1.1.1.2  christos FILESBUILD= yes
     95      1.1  christos FILESDIR=/usr/share/examples/openssl
     96  1.1.1.2  christos 
     97  1.1.1.2  christos CA.pl:	CA.pl.in
     98  1.1.1.2  christos 	${_MKTARGET_CREATE}
     99  1.1.1.2  christos 	rm -f ${.TARGET}
    100  1.1.1.2  christos 	${TOOL_SED} \
    101  1.1.1.2  christos 	    -e 's@{- \$$config{hashbangperl} -}@/usr/bin/env perl@' \
    102  1.1.1.2  christos 	    ${.ALLSRC} > ${.TARGET}
    103  1.1.1.2  christos 
    104  1.1.1.2  christos CLEANFILES+=CA.pl
    105  1.1.1.2  christos 
    106      1.1  christos .endif
    107      1.1  christos 
    108      1.1  christos .include <bsd.prog.mk>
    109