diff options
author | David Shah <davey1576@gmail.com> | 2017-11-18 18:03:20 +0000 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2017-11-18 18:03:20 +0000 |
commit | ed61efa023aa5a9de73c603fae64a5c4264792eb (patch) | |
tree | c1fcc84f4184044eb4ecb456e21d7a4aee76a73b /icetime | |
parent | b059f37b5006bd12ae10f3e847fb394b2540aa6a (diff) | |
parent | b8832a2cda1b1bf0fe5a7c3f1f2833e516f1d136 (diff) | |
download | icestorm-ed61efa023aa5a9de73c603fae64a5c4264792eb.tar.gz icestorm-ed61efa023aa5a9de73c603fae64a5c4264792eb.tar.bz2 icestorm-ed61efa023aa5a9de73c603fae64a5c4264792eb.zip |
Merge branch 'master' into up5k
Diffstat (limited to 'icetime')
-rw-r--r-- | icetime/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/icetime/Makefile b/icetime/Makefile index 5e959c7..d058153 100644 --- a/icetime/Makefile +++ b/icetime/Makefile @@ -8,6 +8,22 @@ endif all: icetime$(EXE) +ifeq ($(EXE),.js) +icetime$(EXE): | share/$(CHIPDB_SUBDIR)/chipdb-384.txt share/$(CHIPDB_SUBDIR)/chipdb-1k.txt share/$(CHIPDB_SUBDIR)/chipdb-8k.txt + +share/$(CHIPDB_SUBDIR)/chipdb-384.txt: ../icebox/chipdb-384.txt + mkdir -p share/$(CHIPDB_SUBDIR) + cp $< $@ +share/$(CHIPDB_SUBDIR)/chipdb-1k.txt: ../icebox/chipdb-1k.txt + mkdir -p share/$(CHIPDB_SUBDIR) + cp $< $@ +share/$(CHIPDB_SUBDIR)/chipdb-8k.txt: ../icebox/chipdb-8k.txt + mkdir -p share/$(CHIPDB_SUBDIR) + cp $< $@ + +override LDFLAGS += --embed-file share +endif + icetime$(EXE): icetime.o $(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS) @@ -46,7 +62,7 @@ test: test0 test1 test2 test3 test4 test5 test6 test7 test8 test9 show: show0 show1 show2 show3 show4 show5 show6 show7 show8 show9 clean: - rm -f icetime icetime.exe timings.inc *.o *.d + rm -f icetime$(EXE) icetime.exe timings.inc *.o *.d rm -rf test[0-9]* -include *.d |