From 018e4051b1f8708a02e0d4d204870895f7dd4597 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 13 Apr 2018 21:43:12 +0200 Subject: Give CPP and CFLAGS separate to compiler. Revert "Don't duplicate CFLAGS and CPPFLAGS." This reverts commit 0cc0db9f7d40fdf9e88f20101a5183e35ba2ea91. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Makefile') 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 $* -- cgit v1.2.3