Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitf5d3ddcdaf87b422a02b4bfffe4ba1b299e61e73 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-28 21:58:56 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-28 22:23:07 +0100
Files5dcbe0bbda310c153a7efce9b327712c44c39c82
goodwolf-f5d3ddcdaf87b422a02b4bfffe4ba1b299e61e73.tar
goodwolf-f5d3ddcdaf87b422a02b4bfffe4ba1b299e61e73.tar.gz
goodwolf-f5d3ddcdaf87b422a02b4bfffe4ba1b299e61e73.zip
Parentbd5214c5fdc97491b50e036402526a71f161277f (diff)
Makefile: fix CC argument ordering
From POSIX manpages: c99 [options...] pathname [[pathname] [−I directory] [−L directory] [−l library]]...
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Makefile4
diff --git a/Makefile b/Makefile
index 1157017..b631eee 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ PREFIX = /usr/local
DEPS = gtk+-3.0 webkit2gtk-4.0
OBJS = badwolf
-CC = cc -std=c11
+CC = cc
CFLAGS = -g -Wall -Wextra
CDEPS = `pkg-config --cflags $(DEPS)`
LIBS = `pkg-config --libs $(DEPS)`
@@ -13,7 +13,7 @@ LIBS = `pkg-config --libs $(DEPS)`
all: $(OBJS)
.c:
- $(CC) $(CFLAGS) $(CDEPS) $(LDFLAGS) $(LIBS) -o $@ $<
+ $(CC) -std=c11 $(CFLAGS) $(CDEPS) -o $@ $< $(LDFLAGS) $(LIBS)
install: badwolf
mkdir -p $(DESTDIR)$(PREFIX)/bin