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