1.if exists (${.CURDIR}/../../Makefile.inc1) 2LIBRESSL_SRC= ${.CURDIR}/../../crypto/libressl 3.elif exists (${.CURDIR}/../../../Makefile.inc1) 4LIBRESSL_SRC= ${.CURDIR}/../../../crypto/libressl 5.else 6.error "Cannot find base directory" 7.endif 8LCRYPTO_SRC= ${LIBRESSL_SRC}/crypto 9LSSL_SRC= ${LIBRESSL_SRC}/ssl 10 11CFLAGS+= -I${LCRYPTO_SRC} -I${LSSL_SRC} -I${.OBJDIR} 12CFLAGS+= -I${LIBRESSL_SRC}/include -I${LIBRESSL_SRC}/include/compat 13CFLAGS+= -DSTDC_HEADERS=1 \ 14 -DHAVE_SYS_TYPES_H=1 \ 15 -DHAVE_SYS_STAT_H=1 \ 16 -DHAVE_STDLIB_H=1 \ 17 -DHAVE_STRING_H=1 \ 18 -DHAVE_MEMORY_H=1 \ 19 -DHAVE_STRINGS_H=1 \ 20 -DHAVE_INTTYPES_H=1 \ 21 -DHAVE_STDINT_H=1 \ 22 -DHAVE_UNISTD_H=1 \ 23 -DHAVE_DLFCN_H=1 \ 24 -DHAVE_SYMLINK=1 \ 25 -DHAVE_ERR_H=1 \ 26 -DHAVE_READPASSPHRASE_H=1 \ 27 -DHAVE_ASPRINTF=1 \ 28 -DHAVE_INET_PTON=1 \ 29 -DHAVE_MEMMEM=1 \ 30 -DHAVE_READPASSPHRASE=1 \ 31 -DHAVE_STRLCAT=1 \ 32 -DHAVE_STRLCPY=1 \ 33 -DHAVE_STRCASECMP=1 \ 34 -DHAVE_STRNDUP=1 \ 35 -DHAVE_STRNLEN=1 \ 36 -DHAVE_STRSEP=1 \ 37 -DHAVE_STRTONUM=1 \ 38 -DHAVE_TIMEGM=1 \ 39 -DHAVE_ACCEPT4=1 \ 40 -DHAVE_POLL=1 \ 41 -DHAVE_ARC4RANDOM=1 \ 42 -DHAVE_ARC4RANDOM_BUF=1 \ 43 -DHAVE_ARC4RANDOM_UNIFORM=1 \ 44 -DHAVE_VA_COPY=1 \ 45 -DHAVE___VA_COPY=1 \ 46 -DHAS_GNU_WARNING_LONG=1 \ 47 -DSIZEOF_TIME_T=8 48CFLAGS+= -DLIBRESSL_INTERNAL -DOPENSSL_NO_HW_PADLOCK 49 50.if defined(LIB) 51_docs= ${LIB} 52_skip= SSLeay_version des_modes 53_sec= 3 54.else 55_docs= apps 56_skip= config 57_sec= 1 58.endif 59