Allow adjusting compilation flags in Makefile

This commit is contained in:
Jerome Charaoui 2019-01-22 22:27:51 -05:00 committed by Fufu Fang
parent 0bcaff7760
commit 19e825aa72
1 changed files with 3 additions and 3 deletions

View File

@ -1,13 +1,13 @@
CC=gcc
CFLAGS= -g -O2 -Wall -Wextra -lgumbo -lcurl -lfuse -lcrypto \
CFLAGS+= -g -O2 -Wall -Wextra -lgumbo -lcurl -lfuse -lcrypto \
-D_FILE_OFFSET_BITS=64
OBJ = main.o network.o fuse_local.o link.o
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
httpdirfs: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
$(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
install:
cp httpdirfs ${HOME}/bin/