Home | History | Annotate | Line # | Download | only in libasn1
Makefile revision 1.4
      1  1.4  christos # $NetBSD: Makefile,v 1.4 2017/02/11 04:56:37 christos Exp $
      2  1.1     elric 
      3  1.1     elric USE_FORT?= yes	# network protocol library
      4  1.1     elric 
      5  1.1     elric .include <bsd.own.mk>
      6  1.1     elric .include <${.CURDIR}/../../Makefile.inc>
      7  1.1     elric 
      8  1.1     elric .PATH:		${HEIMDIST}/lib/asn1 ${HEIMBASE}/include
      9  1.1     elric 
     10  1.1     elric LIB=		asn1
     11  1.1     elric 
     12  1.1     elric LIBDPLIBS+=	com_err	${.CURDIR}/../libcom_err
     13  1.2     joerg LIBDPLIBS+=	roken	${.CURDIR}/../libroken
     14  1.1     elric 
     15  1.1     elric HEIMSRCS =		\
     16  1.1     elric 	asn1_err.et	\
     17  1.1     elric 	krb5.asn1	\
     18  1.1     elric 	cms.asn1	\
     19  1.1     elric 	rfc2459.asn1	\
     20  1.1     elric 	pkinit.asn1	\
     21  1.1     elric 	pkcs12.asn1	\
     22  1.1     elric 	pkcs8.asn1	\
     23  1.1     elric 	pkcs9.asn1	\
     24  1.1     elric 	digest.asn1	\
     25  1.1     elric 	kx509.asn1
     26  1.1     elric 
     27  1.1     elric ASN1_OPTS.rfc2459.asn1 = \
     28  1.1     elric 	--one-code-file				\
     29  1.1     elric 	--preserve-binary=TBSCertificate	\
     30  1.1     elric 	--preserve-binary=TBSCRLCertList	\
     31  1.1     elric 	--preserve-binary=Name			\
     32  1.1     elric 	--sequence=GeneralNames			\
     33  1.1     elric 	--sequence=Extensions			\
     34  1.1     elric 	--sequence=CRLDistributionPoints
     35  1.1     elric 
     36  1.1     elric INCSDIR= /usr/include/krb5
     37  1.1     elric 
     38  1.1     elric INCS=	asn1-common.h		\
     39  1.1     elric 	heim_asn1.h		\
     40  1.1     elric 	der.h			\
     41  1.1     elric 	der-protos.h		\
     42  1.1     elric 	${COMPILE_ET_INCS}	\
     43  1.1     elric 	${ASN1_INCS}
     44  1.1     elric 
     45  1.1     elric SRCS=			\
     46  1.1     elric 	der.c		\
     47  1.1     elric 	der_get.c	\
     48  1.1     elric 	der_put.c	\
     49  1.1     elric 	der_free.c	\
     50  1.1     elric 	der_length.c	\
     51  1.1     elric 	der_copy.c	\
     52  1.1     elric 	der_cmp.c	\
     53  1.1     elric 	der_format.c	\
     54  1.3  christos 	fuzzer.c	\
     55  1.1     elric 	extra.c		\
     56  1.3  christos 	template.c	\
     57  1.1     elric 	timegm.c
     58  1.1     elric 
     59  1.1     elric .if ${USETOOLS} != "yes"
     60  1.1     elric # .PHONY: ${ASN1COMPILEOBJ}/asn1_compile
     61  1.1     elric .PHONY: try_to_build_asn1_compile
     62  1.1     elric 
     63  1.1     elric try_to_build_asn1_compile:
     64  1.1     elric 	@cd ${.CURDIR}/asn1_compile && ${MAKE}
     65  1.1     elric 
     66  1.1     elric ${ASN1COMPILEOBJ}/asn1_compile: try_to_build_asn1_compile
     67  1.1     elric 
     68  1.1     elric SUBDIR=	asn1_compile
     69  1.1     elric .endif
     70  1.1     elric 
     71  1.4  christos 
     72  1.1     elric .include <${HEIMBASE}/Makefile.rules.inc>
     73  1.1     elric .include <bsd.lib.mk>
     74  1.1     elric .if ${USETOOLS} != "yes"
     75  1.1     elric .include <bsd.subdir.mk>
     76  1.1     elric .endif
     77  1.4  christos 
     78  1.4  christos .if ${MACHINE_ARCH} == "sparc64"
     79  1.4  christos # Or anything else that uses PROFILE_HOOK with gcc.
     80  1.4  christos # What happens is that we end up generating one of two different
     81  1.4  christos # function orders and since the profile code uses the function
     82  1.4  christos # number for label generation, we end up with one of two different
     83  1.4  christos # label orders. Disabling ASLR or optimization fixes it.
     84  1.4  christos # This happens only with -m32...
     85  1.4  christos COPTS.asn1_krb5_asn1.c+=-O0
     86  1.4  christos .endif
     87