Evaluate all the $(shell ...) stuff for CXXFLAGS et al only once

This commit is contained in:
Clifford Wolf 2017-02-11 10:28:13 +01:00
parent a431f4ee31
commit 6d4e8673cc
1 changed files with 3 additions and 3 deletions

View File

@ -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