Edit

IABSD.fr/src/lib/libagentx/Makefile

Branch :

  • Show log

    Commit

  • Author : deraadt
    Date : 2020-10-26 15:57:03
    Hash : fb16b9d1
    Message : use installed include file ok martijn

  • lib/libagentx/Makefile
  • #	$OpenBSD: Makefile,v 1.4 2020/10/26 15:57:03 deraadt Exp $
    
    LIB=	agentx
    
    SRCS=	ax.c agentx.c agentx_log.c
    HDRS=	agentx.h
    MAN=	agentx.3
    
    CFLAGS+=	-Wall
    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 \
    	    j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
    		${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
    		-m 444 $$i ${DESTDIR}/usr/include"; \
    	    echo $$j; \
    	    eval "$$j"; \
    	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>