Allow adjusting compilation flags in Makefile
This commit is contained in:
parent
0bcaff7760
commit
19e825aa72
6
Makefile
6
Makefile
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue