summaryrefslogtreecommitdiff
path: root/lib/libfuse/Makefile
blob: 93374b5a54a8f8bb7f87fb63971e80481157bdc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#	$OpenBSD: Makefile,v 1.7 2015/06/03 19:57:53 reyk Exp $

LIB=	fuse
MAN=	fuse_main.3

MLINKS=	fuse_main.3 fuse_version.3 \
	fuse_main.3 fuse_new.3 \
	fuse_main.3 fuse_parse_cmdline.3 \
	fuse_main.3 fuse_mount.3 \
	fuse_main.3 fuse_remove_signal_handlers.3 \
	fuse_main.3 fuse_set_signal_handlers.3 \
	fuse_main.3 fuse_get_session.3 \
	fuse_main.3 fuse_get_context.3 \
	fuse_main.3 fuse_is_lib_option.3 \
	fuse_main.3 fuse_loop.3 \
	fuse_main.3 fuse_loop_mt.3 \
	fuse_main.3 fuse_chan_fd.3 \
	fuse_main.3 fuse_unmount.3 \
	fuse_main.3 fuse_daemonize.3 \
	fuse_main.3 fuse_destroy.3 \
	fuse_main.3 fuse_teardown.3

CFLAGS+=	-Wall -g -Wshadow -Wmissing-prototypes
CFLAGS+=	-Wstrict-prototypes -Wsign-compare

CDIAGFLAGS+=	-Wno-long-long -Wall -W -Wnested-externs -Wformat=2
CDIAGFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
CDIAGFLAGS+=	-Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
CDIAGFLAGS+=	-Wundef -Wbad-function-cast -Winline -Wcast-align

# XXX Shouldn't we use a common fuse.h with proper ifdef _KERNEL part?
CFLAGS+=	-I${.CURDIR} -DDEBUG

SRCS=	debug.c dict.c fuse.c fuse_ops.c fuse_opt.c fuse_subr.c tree.c
HDRS=	fuse.h fuse_opt.h

PC_FILES=fuse.pc
CLEANFILES+=${PC_FILES}

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

beforeinstall:
	/bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
	${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
	    -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/

.include <bsd.lib.mk>