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