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