6 ${BINS}: CFLAGS += -DDEBUG=1 -g
9 ${BINS}: CFLAGS += -Wall -D_FILE_OFFSET_BITS=64
10 fusefile: LDFLAGS = -lfuse -pthread
12 .INTERMEDIATE: fusefile.o
13 fusefile.o: fusefile.c
16 $(CC) $(CFLAGS) $(CPPFLAGS) $? $(LDFLAGS) $(TARGET_ARCH) -o $@
21 README.html: README.adoc
24 # Building a debian package
26 SBINDIR = $(DESTDIR)/usr/sbin
27 MAN8DIR = $(DESTDIR)/usr/share/man/man8
29 SBINFILES = fusefile fusedisk
30 MAN8FILES = fusefile.8
32 INSTALLTARGETS = $(addprefix $(SBINDIR)/,$(SBINFILES))
33 INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
35 $(SBINDIR)/% $(MAN8DIR)/%: %
38 install: $(INSTALLTARGETS)
41 PREFIX= INCLUDE_PREFIX=/usr dpkg-buildpackage --build=full -uc -us