mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 11:20:27 +00:00
Moved stand-alone libs to libs/ directory and added libs/subcircuit
This commit is contained in:
parent
4f0c2862a0
commit
a321a5c412
39 changed files with 2776 additions and 9 deletions
52
libs/subcircuit/Makefile
Normal file
52
libs/subcircuit/Makefile
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue