summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2018-04-13 21:43:12 +0200
committerDaniel Carl <danielcarl@gmx.de>2018-04-13 22:02:38 +0200
commit018e4051b1f8708a02e0d4d204870895f7dd4597 (patch)
treeaf64ecad0348c8d19bd518835c1ff669641dacec /src
parente71bcdb3a898f8e984131d79e331277ebff41c42 (diff)
Give CPP and CFLAGS separate to compiler.
Revert "Don't duplicate CFLAGS and CPPFLAGS." This reverts commit 0cc0db9f7d40fdf9e88f20101a5183e35ba2ea91.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
-rw-r--r--src/webextension/Makefile4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index 0d2842a..683b9b1 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -13,7 +13,7 @@ clean: $(SUBDIRS:%=%.subdir-clean)
vimb: $(OBJ)
@echo "${CC} $@"
- $(Q)$(CC) $(OBJ) $(VIMB_LDFLAGS) -o $@
+ $(Q)$(CC) $(OBJ) $(LDFLAGS) -o $@
$(OBJ): config.h $(BASEDIR)/config.mk
@@ -36,7 +36,7 @@ scripts/scripts.h: $(JSFILES) $(CSSFILES)
%.o: %.c
@echo "${CC} $@"
- $(Q)$(CC) $(VIMB_CFLAGS) -c -o $@ $<
+ $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
%.subdir-all: config.h
$(Q)$(MAKE) -C $*
diff --git a/src/webextension/Makefile b/src/webextension/Makefile
index ff34ff2..72c12df 100644
--- a/src/webextension/Makefile
+++ b/src/webextension/Makefile
@@ -10,10 +10,10 @@ clean:
$(EXTTARGET): $(OBJ)
@echo "$(CC) $@"
- $(Q)$(CC) $(OBJ) $(EXT_LDFLAGS) -o $@
+ $(Q)$(CC) $(OBJ) $(EXTLDFLAGS) -o $@
%.lo: %.c
@echo "${CC} $@"
- $(Q)$(CC) $(EXT_CFLAGS) -fPIC -c -o $@ $<
+ $(Q)$(CC) $(EXTCPPFLAGS) $(EXTCFLAGS) -fPIC -c -o $@ $<
.PHONY: all clean