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
|
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
|
-D_FILE_OFFSET_BITS=64
|
||||||
OBJ = main.o network.o fuse_local.o link.o
|
OBJ = main.o network.o fuse_local.o link.o
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
httpdirfs: $(OBJ)
|
httpdirfs: $(OBJ)
|
||||||
$(CC) -o $@ $^ $(CFLAGS)
|
$(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp httpdirfs ${HOME}/bin/
|
cp httpdirfs ${HOME}/bin/
|
||||||
|
|
Loading…
Reference in New Issue