httpdirfs/Makefile

32 lines
616 B
Makefile
Raw Normal View History

2019-01-24 05:53:14 +01:00
VERSION=1.0
2019-01-24 05:53:14 +01:00
CFLAGS+= -g -O2 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\"
LDFLAGS+= -lgumbo -lcurl -lfuse -lcrypto
2018-07-26 11:29:44 +02:00
OBJ = main.o network.o fuse_local.o link.o
2018-07-18 17:26:26 +02:00
prefix ?= /usr/local
2019-01-25 03:19:22 +01:00
all: httpdirfs
2018-07-19 10:27:40 +02:00
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c -o $@ $<
2018-07-18 17:26:26 +02:00
2018-07-23 02:27:03 +02:00
httpdirfs: $(OBJ)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^
2018-07-18 17:26:26 +02:00
2018-07-24 15:33:03 +02:00
install:
install -m 755 -D httpdirfs \
$(DESTDIR)$(prefix)/bin/httpdirfs
install -m 644 -D httpdirfs.1 \
$(DESTDIR)$(prefix)/share/man/man1/httpdirfs.1
2018-07-24 15:33:03 +02:00
doc:
doxygen Doxyfile
2018-07-18 17:26:26 +02:00
clean:
rm -rf *.o httpdirfs html
2019-01-25 03:19:22 +01:00
distclean: clean
.PHONY: all install clean distclean