diff options
| author | Siesh1oo <siesh1oo@siesh1oo.no> | 2014-03-11 19:39:01 +0100 | 
|---|---|---|
| committer | Siesh1oo <siesh1oo@siesh1oo.no> | 2014-03-12 14:00:40 +0100 | 
| commit | 8f3fa094817ec2c7df4253c690b5ccdb50a5b7d8 (patch) | |
| tree | c9a22cf9c46abf8455cde9777b59efa0b765373b | |
| parent | 31528634796c15d0dcdb113ff730fa743663ca07 (diff) | |
| download | yosys-8f3fa094817ec2c7df4253c690b5ccdb50a5b7d8.tar.gz yosys-8f3fa094817ec2c7df4253c690b5ccdb50a5b7d8.tar.bz2 yosys-8f3fa094817ec2c7df4253c690b5ccdb50a5b7d8.zip | |
 - Makefile: resolve merge conflict.
| -rw-r--r-- | Makefile | 28 | 
1 files changed, 23 insertions, 5 deletions
| @@ -22,11 +22,22 @@ TARGETS = yosys yosys-config  all: top-all -CXXFLAGS = -Wall -Wextra -ggdb -I"$(shell pwd)" -MD -D_YOSYS_ -fPIC -LDFLAGS = -rdynamic -LDLIBS = -lstdc++ -lreadline -lm -ldl -lrt -QMAKE = qmake-qt4 -SED = sed +CXXFLAGS = -Wall -Wextra -ggdb -I"$(shell pwd)" -I${DESTDIR}/include -MD -D_YOSYS_ -fPIC -include kernel/posix_compatibility.h +LDFLAGS = -I${DESTDIR}/lib +LDLIBS = -lstdc++ -lreadline -lm -ldl + +ifeq (Darwin,$(findstring Darwin,$(shell uname))) +	# add macports include and library path to search directories, don't use '-rdynamic' and '-lrt': +	CXXFLAGS += -I/opt/local/include +	LDFLAGS += -L/opt/local/lib +	QMAKE = qmake +	SED = gsed +else +	LDFLAGS += -rdynamic +	LDLIBS += -lrt +	QMAKE = qmake-qt4 +	SED = sed +endif  YOSYS_VER := 0.2.0+  GIT_REV := $(shell git rev-parse --short HEAD || echo UNKOWN) @@ -123,6 +134,13 @@ yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp  	cd libs/svgviewer && $(QMAKE) && make  	cp libs/svgviewer/svgviewer 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):  ifneq ($(ABCREV),default)  	if ( cd abc && hg identify; ) | grep -q +; then \ | 
