X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=a96aeace7b458cc62cff1f0239d12e7229e12af5;hb=0dbecf1d5e1f4da1289654b8d11246aca6d005b6;hp=7b12aef4a4e9111d5ef0cbba7c1feb7eee95d05d;hpb=5846647533bff279426f3556dd5c0c01516604d9;p=rrq%2Ffusefile.git diff --git a/Makefile b/Makefile index 7b12aef..a96aeac 100644 --- a/Makefile +++ b/Makefile @@ -1,25 +1,36 @@ -BINS = fusefile +BINS = fusefile fusefile-olydump default: $(BINS) -fusefile: CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 +ifneq (${DEBUG},) +${BINS}: CFLAGS += -DDEBUG=1 -g +endif + +${BINS}: CFLAGS += -Wall -D_FILE_OFFSET_BITS=64 fusefile: LDFLAGS = -lfuse -pthread -.INTERMEDIATE: fusefile.o +.INTERMEDIATE: fusefile.o fusefile-olydump.o fusefile.o: fusefile.c +fusefile-olydump.o: fusefile-olydump.c fusefile: fusefile.o $(CC) $(CFLAGS) $(CPPFLAGS) $? $(LDFLAGS) $(TARGET_ARCH) -o $@ +fusefile-olydump: fusefile-olydump.o + $(CC) $(CFLAGS) $(CPPFLAGS) $? $(LDFLAGS) $(TARGET_ARCH) -o $@ + clean: rm -f $(BINS) +README.html: README.adoc + asciidoctor $< > $@ + # Building a debian package -SBINDIR = $(DESTDIR)/usr/local/sbin -MAN8DIR = $(DESTDIR)/usr/local/share/man/man8 +SBINDIR = $(DESTDIR)/usr/sbin +MAN8DIR = $(DESTDIR)/usr/share/man/man8 -SBINFILES = fusefile +SBINFILES = fusefile fusedisk MAN8FILES = fusefile.8 INSTALLTARGETS = $(addprefix $(SBINDIR)/,$(SBINFILES))