Allow standard tools to be overwritten in make invocation

This commit is contained in:
Steffen Vogel 2017-02-07 11:09:15 -03:00
parent 44b47b57e3
commit 19f36271c2
1 changed files with 3 additions and 3 deletions

View File

@ -57,9 +57,9 @@ CXXFLAGS += -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -D_YOSYS_ -fPIC -I$(PRE
LDFLAGS += -L$(LIBDIR) LDFLAGS += -L$(LIBDIR)
LDLIBS = -lstdc++ -lm LDLIBS = -lstdc++ -lm
PKG_CONFIG = pkg-config PKG_CONFIG ?= pkg-config
SED = sed SED ?= sed
BISON = bison BISON ?= bison
ifeq (Darwin,$(findstring Darwin,$(shell uname))) ifeq (Darwin,$(findstring Darwin,$(shell uname)))
BREW := $(shell command -v brew 2> /dev/null) BREW := $(shell command -v brew 2> /dev/null)