diff options
Diffstat (limited to 'lib/libagentx/Makefile')
-rw-r--r-- | lib/libagentx/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/libagentx/Makefile b/lib/libagentx/Makefile new file mode 100644 index 00000000000..82c255f9786 --- /dev/null +++ b/lib/libagentx/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1 2020/09/16 10:48:52 martijn Exp $ + +LIB= agentx + +SRCS= agentx.c subagentx.c subagentx_log.c +HDRS= subagentx.h +MAN= subagentx.3 + +CFLAGS+= -Wall -I${.CURDIR} +CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes +CFLAGS+= -Wmissing-declarations +CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual +CFLAGS+= -Wsign-compare + +CLEANFILES= ${VERSION_SCRIPT} + +VERSION_SCRIPT= Symbols.map +SYMBOL_LIST= ${.CURDIR}/Symbols.list + +includes: + @cd ${.CURDIR}; for i in ${HDRS}; do \ + cmp -s $$i ${DESTDIR}/usr/include/$$i || \ + ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) $$i \ + ${DESTDIR}/usr/include; done + +${VERSION_SCRIPT}: ${SYMBOL_LIST} + { printf '{\n\tglobal:\n'; \ + sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \ + printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@ + +.include <bsd.lib.mk> |