diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-02-27 09:32:19 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-02-27 09:32:19 +0100 |
commit | a321a5c412090d04dfaea4b4876c4901c42cfe44 (patch) | |
tree | b08d286e0aea76be9aab7a543df0b51e76b6ede4 /libs/subcircuit/Makefile | |
parent | 4f0c2862a0d7e1ca247e0a4d54301c7f8cc92fd8 (diff) | |
download | yosys-a321a5c412090d04dfaea4b4876c4901c42cfe44.tar.gz yosys-a321a5c412090d04dfaea4b4876c4901c42cfe44.tar.bz2 yosys-a321a5c412090d04dfaea4b4876c4901c42cfe44.zip |
Moved stand-alone libs to libs/ directory and added libs/subcircuit
Diffstat (limited to 'libs/subcircuit/Makefile')
-rw-r--r-- | libs/subcircuit/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libs/subcircuit/Makefile b/libs/subcircuit/Makefile new file mode 100644 index 000000000..af745b4b6 --- /dev/null +++ b/libs/subcircuit/Makefile @@ -0,0 +1,52 @@ + +CONFIG := clang-debug +# CONFIG := gcc-debug +# CONFIG := profile +# CONFIG := release + +CC = clang +CXX = clang +CXXFLAGS = -MD -Wall -Wextra -ggdb +LDLIBS = -lstdc++ + +ifeq ($(CONFIG),clang-debug) +CXXFLAGS += -std=c++11 -O0 +endif + +ifeq ($(CONFIG),gcc-debug) +CC = gcc +CXX = gcc +CXXFLAGS += -std=gnu++0x -O0 +endif + +ifeq ($(CONFIG),profile) +CC = gcc +CXX = gcc +CXXFLAGS += -std=gnu++0x -Os -DNDEBUG +endif + +ifeq ($(CONFIG),release) +CC = gcc +CXX = gcc +CXXFLAGS += -std=gnu++0x -march=native -O3 -DNDEBUG +endif + +all: demo scshell + +demo: demo.o subcircuit.o + +scshell: scshell.o subcircuit.o + +test: scshell + ./scshell < test_macc22.txt + perl test_perm.pl | ./scshell + splrun test_shorts.spl | ./scshell + splrun test_large.spl | ./scshell + +clean: + rm -f demo scshell *.o *.d + +.PHONY: all test clean + +-include *.d + |