jcs's openbsd hax
openbsd
1# $OpenBSD: Makefile,v 1.20 2026/02/02 09:17:06 helg 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 fuse_session_loop.3 \
8 fuse_lowlevel_new.3 fuse_reply_err.3
9
10CFLAGS+= -Wall -Wshadow -Wmissing-prototypes
11CFLAGS+= -Wstrict-prototypes -Wsign-compare
12
13CDIAGFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
14CDIAGFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
15CDIAGFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
16CDIAGFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
17
18CFLAGS+= -I${.CURDIR}
19
20SRCS= debug.c dict.c fuse.c fuse_ops.c fuse_opt.c fuse_subr.c tree.c \
21 fuse_chan.c fuse_session.c fuse_lowlevel.c
22HDRS= fuse.h fuse_opt.h fuse_common.h fuse_lowlevel.h
23
24VERSION_SCRIPT= ${.CURDIR}/Symbols.map
25
26PC_FILES=fuse.pc
27CLEANFILES+=${PC_FILES}
28
29includes:
30 ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
31 ${DESTDIR}/usr/include/fuse
32 @cd ${.CURDIR}; for i in ${HDRS}; do \
33 j="cmp -s $$i ${DESTDIR}/usr/include/fuse/$$i || \
34 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
35 $$i ${DESTDIR}/usr/include/fuse"; \
36 echo $$j; \
37 eval "$$j"; \
38 done
39
40all: ${PC_FILES}
41${PC_FILES}: fuse_private.h
42 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
43
44beforeinstall:
45 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
46 -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/
47
48.include <bsd.lib.mk>