1 # $OpenBSD: Makefile,v 1.33 2018/02/08 05:56:49 jsing Exp $
8 CFLAGS
+= -Wall
-Wimplicit
-Wundef
9 .if
${COMPILER_VERSION
:L
} == "clang"
12 CFLAGS
+= -DLIBRESSL_INTERNAL
14 CLEANFILES
= ${VERSION_SCRIPT}
20 DPADD
= ${LIBCRYPTO} ${LIBSSL}
22 LDADD
+= -L
${BSDOBJDIR}/lib
/libcrypto
-lcrypto
23 LDADD
+= -L
${BSDOBJDIR}/lib
/libssl
-lssl
25 VERSION_SCRIPT
= Symbols.map
26 SYMBOL_LIST
= ${.CURDIR
}/Symbols.list
43 @cd
${.CURDIR
}; for i in
$(HDRS
); do \
44 j
="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
45 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
46 ${DESTDIR}/usr/include/"; \
51 ${VERSION_SCRIPT}: ${SYMBOL_LIST}
52 { printf
'{\n\tglobal:\n'; \
53 sed
'/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \
54 printf
'\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp
&& mv
$@.tmp
$@