From 2877c957673fbb1c1c6b6c96fb12ccf8d393542d Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Thu, 28 Mar 2019 19:38:45 +0100 Subject: Makefile: Properly separate CFLAGS This allows to simply pass CFLAGS on make without having to care about deps --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bcc39cc..21f1c72 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,14 @@ DEPS = gtk+-3.0 webkit2gtk-4.0 OBJS = badwolf CC = cc -std=c99 -CFLAGS = -g -Wall -Wextra `pkg-config --cflags $(DEPS)` -LDFLAGS = `pkg-config --libs $(DEPS)` +CFLAGS = -g -Wall -Wextra +CDEPS = `pkg-config --cflags $(DEPS)` +LIBS = `pkg-config --libs $(DEPS)` all: $(OBJS) .c: - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + $(CC) $(CFLAGS) $(CDEPS) $(LDFLAGS) $(LIBS) -o $@ $< install: badwolf mkdir -p $(DESTDIR)$(PREFIX)/bin -- cgit v1.3.1-23-gd82d