mirror of https://github.com/YosysHQ/yosys.git
- Makefile: follow changes in https://github.com/cliffordwolf/yosys
This commit is contained in:
parent
18367919ea
commit
a8efb61e1f
19
Makefile
19
Makefile
|
@ -56,8 +56,6 @@ OBJS = kernel/version_$(GIT_REV).o
|
||||||
ABCREV = 2058c8ccea68
|
ABCREV = 2058c8ccea68
|
||||||
ABCPULL = 1
|
ABCPULL = 1
|
||||||
|
|
||||||
MINISATREV = HEAD
|
|
||||||
|
|
||||||
-include Makefile.conf
|
-include Makefile.conf
|
||||||
|
|
||||||
ifeq ($(CONFIG),clang-debug)
|
ifeq ($(CONFIG),clang-debug)
|
||||||
|
@ -87,8 +85,8 @@ CXXFLAGS += -pg -fno-inline
|
||||||
LDFLAGS += -pg
|
LDFLAGS += -pg
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ENABLE_MINISAT),1)
|
ifeq ($(ENABLE_QT4),1)
|
||||||
TARGETS += yosys-minisat
|
TARGETS += yosys-svgviewer
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ENABLE_ABC),1)
|
ifeq ($(ENABLE_ABC),1)
|
||||||
|
@ -102,13 +100,9 @@ CXXFLAGS += $(patsubst %,-I$(VERIFIC_DIR)/%,$(VERIFIC_COMPONENTS)) -D'VERIFIC_DI
|
||||||
LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-linux.a,$(VERIFIC_COMPONENTS))
|
LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-linux.a,$(VERIFIC_COMPONENTS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Build yosys after minisat and abc (we need to access the local copies of the downloaded/installed header files).
|
# Build yosys after abc (we need to access the the downloaded/installed header files and libraries when building yosys).
|
||||||
TARGETS += yosys yosys-config
|
TARGETS += yosys yosys-config
|
||||||
|
|
||||||
ifeq ($(ENABLE_QT4),1)
|
|
||||||
TARGETS += yosys-svgviewer
|
|
||||||
endif
|
|
||||||
|
|
||||||
OBJS += kernel/driver.o kernel/register.o kernel/rtlil.o kernel/log.o kernel/calc.o kernel/posix_compatibility.o
|
OBJS += kernel/driver.o kernel/register.o kernel/rtlil.o kernel/log.o kernel/calc.o kernel/posix_compatibility.o
|
||||||
|
|
||||||
OBJS += libs/bigint/BigIntegerAlgorithms.o libs/bigint/BigInteger.o libs/bigint/BigIntegerUtils.o
|
OBJS += libs/bigint/BigIntegerAlgorithms.o libs/bigint/BigInteger.o libs/bigint/BigIntegerUtils.o
|
||||||
|
@ -147,13 +141,6 @@ yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp
|
||||||
cd libs/svgviewer && $(QMAKE) && make
|
cd libs/svgviewer && $(QMAKE) && make
|
||||||
cp `find libs/svgviewer -name svgviewer -type f` yosys-svgviewer
|
cp `find libs/svgviewer -name svgviewer -type f` yosys-svgviewer
|
||||||
|
|
||||||
yosys-minisat: $(DESTDIR)/bin/minisat
|
|
||||||
$(DESTDIR)/bin/minisat:
|
|
||||||
test -d minisat || ( git clone https://github.com/niklasso/minisat.git minisat && $(SED) -i -e 's/PRIi64/ & /' minisat/minisat/utils/Options.h )
|
|
||||||
( cd minisat && git checkout $(MINISATREV) )
|
|
||||||
( cd minisat && $(MAKE) prefix=$(DESTDIR) DESTDIR="" config install )
|
|
||||||
@( cd minisat && echo "Installed minisat version `git describe --always --dirty` into $(DESTDIR)." )
|
|
||||||
|
|
||||||
abc/abc-$(ABCREV):
|
abc/abc-$(ABCREV):
|
||||||
ifneq ($(ABCREV),default)
|
ifneq ($(ABCREV),default)
|
||||||
if ( cd abc && hg identify; ) | grep -q +; then \
|
if ( cd abc && hg identify; ) | grep -q +; then \
|
||||||
|
|
Loading…
Reference in New Issue