aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-04-10 10:05:17 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2020-04-10 10:05:17 +0200
commitfe3086a7339f0c2731fb1a14f6ef0e4d93a0377e (patch)
tree47dbe6b20205c9faecee0217a863486e68ef253e /config.mk
parentd1cee1d4ae545fdca995cd656ef52d8923aa77e9 (diff)
downloadicestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.gz
icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.bz2
icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.zip
Support custom PROGRAM_PREFIX
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index c5ebc62..9cb7793 100644
--- a/config.mk
+++ b/config.mk
@@ -1,6 +1,7 @@
PREFIX ?= /usr/local
DEBUG ?= 0
ICEPROG ?= 1
+PROGRAM_PREFIX ?=
CXX ?= clang++
CC ?= clang
@@ -22,7 +23,7 @@ CFLAGS += -MD -O$(OPT_LEVEL) $(DBG_LEVEL) -W$(WARN_LEVEL) -std=$(C_STD) -I$(PREF
CXXFLAGS += -MD -O$(OPT_LEVEL) $(DBG_LEVEL) -W$(WARN_LEVEL) -std=$(CXX_STD) -I$(PREFIX)/include
DESTDIR ?=
-CHIPDB_SUBDIR ?= icebox
+CHIPDB_SUBDIR ?= $(PROGRAM_PREFIX)icebox
ifeq ($(MXE),1)
EXE = .exe