httpdirfs/Makefile
Jerome Charaoui dd4e9d5517 Put compiler flags before dash options
Again, that's more in line with the standard
2019-04-24 04:21:10 +01:00

28 lines
560 B
Makefile

VERSION=1.0
CFLAGS+= -g -O2 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\"
LDFLAGS+= -lgumbo -lcurl -lfuse -lcrypto
OBJ = main.o network.o fuse_local.o link.o
prefix ?= /usr/local
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c -o $@ $<
httpdirfs: $(OBJ)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^
install:
install -m 755 -D httpdirfs \
$(DESTDIR)$(prefix)/bin/httpdirfs
install -m 644 -D httpdirfs.1 \
$(DESTDIR)$(prefix)/share/man/man1/httpdirfs.1
doc:
doxygen Doxyfile
.PHONY: clean
clean:
rm -rf *.o httpdirfs html