aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-31 21:54:45 +0200
committerGitHub <noreply@github.com>2019-08-31 21:54:45 +0200
commit04f1eb78ed8fd50516aee50102675041a8fd40cd (patch)
tree38388076bb73c740c402f44fe78f2b7b63d9c083
parent95949315364f8d9b0c693386aefadf44b28e2cf6 (diff)
parent37227e2b18c7dffa6ce881632b1cdf40f3b8c3d8 (diff)
downloadicestorm-04f1eb78ed8fd50516aee50102675041a8fd40cd.tar.gz
icestorm-04f1eb78ed8fd50516aee50102675041a8fd40cd.tar.bz2
icestorm-04f1eb78ed8fd50516aee50102675041a8fd40cd.zip
Merge pull request #235 from whitequark/master
Make iceprog optional
-rw-r--r--Makefile7
-rw-r--r--config.mk1
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5a95087..77e01fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
-SUBDIRS = icebox icepack iceprog icemulti icepll icetime icebram
-
include config.mk
+SUBDIRS := icebox icepack icemulti icepll icebram icetime
+ifeq ($(ICEPROG),1)
+SUBDIRS += iceprog
+endif
+
all: $(addsuffix .all,$(SUBDIRS))
$(addsuffix .all,$(SUBDIRS)):
$(MAKE) -C $(basename $@) all
diff --git a/config.mk b/config.mk
index 3b8b675..c5ebc62 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,6 @@
PREFIX ?= /usr/local
DEBUG ?= 0
+ICEPROG ?= 1
CXX ?= clang++
CC ?= clang