commit 7da18783f0f909b2c33de9d67dbcc1eccb631fa0
parent d5677e6c44a774aa36b698dcdab4760f2524e013
Author: pin <voidpin@protonmail.com>
Date: Mon, 9 Nov 2020 13:31:09 +0100
Do not override user's CFLAGS
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -4,14 +4,14 @@ SRC := src/tiramisu.c src/output.c
PREFIX ?= /usr/local
-CFLAGS = -Wall -Wno-unused-value
+CFLAGS+ = -Wall -Wno-unused-value
IFLAGS = $(shell pkg-config --cflags glib-2.0 gio-2.0)
LFLAGS = $(shell pkg-config --libs glib-2.0 gio-2.0)
all: $(TARGET)
$(TARGET): $(OBJ)
- $(CC) $(CFLAGS) $(IFLAGS) $(SRC) $(LFLAGS) -o $(TARGET)
+ $(CC) $(CFLAGS) $(IFLAGS) $(SRC) $(LFLAGS) $(LDFLAGS) -o $(TARGET)
install: $(TARGET)
mkdir -p $(DESTDIR)$(PREFIX)/bin