Makefile revision 1.14
1# $OpenBSD: Makefile,v 1.14 2018/07/05 10:29:36 helg Exp $ 2 3LIB= fuse 4MAN= fuse_main.3 fuse_set_signal_handlers.3 5 6CFLAGS+= -Wall -Wshadow -Wmissing-prototypes 7CFLAGS+= -Wstrict-prototypes -Wsign-compare 8 9CDIAGFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 10CDIAGFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations 11CDIAGFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare 12CDIAGFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align 13 14# XXX Shouldn't we use a common fuse.h with proper ifdef _KERNEL part? 15CFLAGS+= -I${.CURDIR} 16 17SRCS= debug.c dict.c fuse.c fuse_ops.c fuse_opt.c fuse_subr.c tree.c 18HDRS= fuse.h fuse_opt.h 19 20VERSION_SCRIPT= ${.CURDIR}/Symbols.map 21 22PC_FILES=fuse.pc 23CLEANFILES+=${PC_FILES} 24 25includes: 26 @cd ${.CURDIR}; for i in ${HDRS}; do \ 27 j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \ 28 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 29 $$i ${DESTDIR}/usr/include"; \ 30 echo $$j; \ 31 eval "$$j"; \ 32 done 33 34all: ${PC_FILES} 35${PC_FILES}: fuse_private.h 36 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} 37 38beforeinstall: 39 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ 40 -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/ 41 42.include <bsd.lib.mk> 43