Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 4 insertions, 3 deletions
-rw-r--r--Makefile7
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