X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=a96aeace7b458cc62cff1f0239d12e7229e12af5;hb=0dbecf1d5e1f4da1289654b8d11246aca6d005b6;hp=c2a0ba66fdb62d94ab77c8c75ca851008ac50d71;hpb=26b59ee2e0ee0a47f19153e629ce0c7a94bb134d;p=rrq%2Ffusefile.git diff --git a/Makefile b/Makefile index c2a0ba6..a96aeac 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,24 @@ -BINS = fusefile +BINS = fusefile fusefile-olydump default: $(BINS) ifneq (${DEBUG},) -fusefile: CFLAGS += -DDEBUG=1 -g +${BINS}: CFLAGS += -DDEBUG=1 -g endif -fusefile: CFLAGS += -Wall -D_FILE_OFFSET_BITS=64 +${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) @@ -26,7 +30,7 @@ README.html: README.adoc SBINDIR = $(DESTDIR)/usr/sbin MAN8DIR = $(DESTDIR)/usr/share/man/man8 -SBINFILES = fusefile +SBINFILES = fusefile fusedisk MAN8FILES = fusefile.8 INSTALLTARGETS = $(addprefix $(SBINDIR)/,$(SBINFILES))