summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-27 10:51:15 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-27 10:51:15 +0100
commit9c401b58a241827c187c9e586aa22b600bd2ef0a (patch)
tree37be1a816413bce2581e1a89a10ebf430575e409 /Makefile
parent62b9e16f87d012b407f95f13a8ff0e3fb027ecec (diff)
Added yosys-svgviewer to build system and renamed filterlib to yosys-filterlib
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b20d1771..6d501d4f 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ OBJS += libs/sha1/sha1.o
OBJS += libs/subcircuit/subcircuit.o
GENFILES =
-TARGETS = yosys yosys-config
+TARGETS = yosys yosys-config yosys-svgviewer
all: top-all
@@ -51,6 +51,10 @@ yosys-config: yosys-config.in
sed 's,@CXX@,$(CXX),; s,@CXXFLAGS@,$(CXXFLAGS),; s,@LDFLAGS@,$(LDFLAGS),; s,@LDLIBS@,$(LDLIBS),;' < yosys-config.in > yosys-config
chmod +x yosys-config
+yosys-svgviewer: libs/svgviewer/*
+ cd libs/svgviewer && qmake && make
+ cp libs/svgviewer/svgviewer yosys-svgviewer
+
test: yosys
cd tests/simple && bash run-test.sh
cd tests/hana && bash run-test.sh
@@ -59,10 +63,13 @@ test: yosys
install: yosys
install yosys /usr/local/bin/yosys
install yosys-config /usr/local/bin/yosys-config
+ install yosys-svgviewer /usr/local/bin/yosys-svgviewer
+ install yosys-filterlib /usr/local/bin/yosys-filterlib
clean:
rm -f $(OBJS) $(GENFILES) $(TARGETS)
rm -f libs/*/*.d frontends/*/*.d passes/*/*.d backends/*/*.d kernel/*.d
+ test ! -f libs/svgviewer/Makefile || make -C libs/svgviewer distclean
mrproper: clean
git clean -xdf