From: Clifford Wolf Date: Sat, 11 Feb 2017 09:28:13 +0000 (+0100) Subject: Evaluate all the $(shell ...) stuff for CXXFLAGS et al only once X-Git-Tag: yosys-0.8~505 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d4e8673cc1c73df7509b016bd7cc9e67f6384d7;p=yosys.git Evaluate all the $(shell ...) stuff for CXXFLAGS et al only once --- diff --git a/Makefile b/Makefile index 77651fdbf..2773990a6 100644 --- a/Makefile +++ b/Makefile @@ -53,9 +53,9 @@ all: top-all YOSYS_SRC := $(dir $(firstword $(MAKEFILE_LIST))) VPATH := $(YOSYS_SRC) -CXXFLAGS += -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -D_YOSYS_ -fPIC -I$(PREFIX)/include -LDFLAGS += -L$(LIBDIR) -LDLIBS = -lstdc++ -lm +CXXFLAGS := $(CXXFLAGS) -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -D_YOSYS_ -fPIC -I$(PREFIX)/include +LDFLAGS := $(LDFLAGS) -L$(LIBDIR) +LDLIBS := $(LDLIBS) -lstdc++ -lm PKG_CONFIG ?= pkg-config SED ?= sed