commit 4ecacc5064d04c71377c509cec46a9d86dae0141 parent 7da18783f0f909b2c33de9d67dbcc1eccb631fa0 Author: pin <voidpin@protonmail.com> Date: Mon, 9 Nov 2020 15:20:52 +0100 Do not override user's CFLAGS and honor LDFLAGS Diffstat:
M | Makefile | | | 42 | +++++++++++++++++++++--------------------- |
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,21 +1,21 @@ - -TARGET = tiramisu -SRC := src/tiramisu.c src/output.c - -PREFIX ?= /usr/local - -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) $(LDFLAGS) -o $(TARGET) - -install: $(TARGET) - mkdir -p $(DESTDIR)$(PREFIX)/bin - install $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) - -clean: - $(RM) ./tiramisu + +TARGET = tiramisu +SRC := src/tiramisu.c src/output.c + +PREFIX ?= /usr/local + +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) $(LDFLAGS) -o $(TARGET) + +install: $(TARGET) + mkdir -p $(DESTDIR)$(PREFIX)/bin + install $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) + +clean: + $(RM) ./tiramisu