logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 2877c957673fbb1c1c6b6c96fb12ccf8d393542d
parent: a5da22c81a448b4f66eaed1952cff8db2b609bc3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 28 Mar 2019 19:38:45 +0100

Makefile: Properly separate CFLAGS

This allows to simply pass CFLAGS on make without having to care about deps

Diffstat:

MMakefile7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 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