OBJS += libs/subcircuit/subcircuit.o
GENFILES =
-TARGETS = yosys yosys-config
+TARGETS = yosys yosys-config yosys-svgviewer
all: top-all
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
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
OBJS += passes/dfflibmap/dfflibmap.o
OBJS += passes/dfflibmap/libparse.o
-TARGETS += filterlib
+TARGETS += yosys-filterlib
GENFILES += passes/dfflibmap/filterlib.o
-filterlib: passes/dfflibmap/filterlib.o
- $(CXX) -o filterlib $(LDFLAGS) $^ $(LDLIBS)
+yosys-filterlib: passes/dfflibmap/filterlib.o
+ $(CXX) -o yosys-filterlib $(LDFLAGS) $^ $(LDLIBS)