diff options
| author | Siesh1oo <siesh1oo@siesh1oo.no> | 2014-03-10 20:06:46 +0100 | 
|---|---|---|
| committer | Siesh1oo <siesh1oo@siesh1oo.no> | 2014-03-12 14:00:40 +0100 | 
| commit | 94bc11f0216010e54a8a4dd1fd390af97181f627 (patch) | |
| tree | 5ebbfb79c38b6d588bca342b28a7ebbfe54acddb | |
| parent | 8f3fa094817ec2c7df4253c690b5ccdb50a5b7d8 (diff) | |
| download | yosys-94bc11f0216010e54a8a4dd1fd390af97181f627.tar.gz yosys-94bc11f0216010e54a8a4dd1fd390af97181f627.tar.bz2 yosys-94bc11f0216010e54a8a4dd1fd390af97181f627.zip | |
 - Makefile: export PATH=${DESTDIR}/bin:$(PATH) and (DY)LD_LIBRARY_PATH, to make sure our local copies of built executables and libraries are used.
 - Makefile: use find expression in target 'yosys-svgviewer' to find svgviewer binary (qmake will build into .app package on OSX).
 - Makefile: make 'test' target dependent on $(TARGETS) and $(EXTRA_TARGETS) to make sure that minisat is built.
| -rw-r--r-- | Makefile | 6 | 
1 files changed, 5 insertions, 1 deletions
| @@ -26,13 +26,17 @@ CXXFLAGS = -Wall -Wextra -ggdb -I"$(shell pwd)" -I${DESTDIR}/include -MD -D_YOSY  LDFLAGS = -I${DESTDIR}/lib  LDLIBS = -lstdc++ -lreadline -lm -ldl +export PATH := ${DESTDIR}/bin:$(PATH) +  ifeq (Darwin,$(findstring Darwin,$(shell uname)))  	# add macports include and library path to search directories, don't use '-rdynamic' and '-lrt': +	export DYLD_LIBRARY_PATH := ${DESTDIR}/lib:$(DYLD_LIBRARY_PATH)  	CXXFLAGS += -I/opt/local/include  	LDFLAGS += -L/opt/local/lib  	QMAKE = qmake  	SED = gsed  else +	export LD_LIBRARY_PATH := ${DESTDIR}/lib:$(LD_LIBRARY_PATH)  	LDFLAGS += -rdynamic  	LDLIBS += -lrt  	QMAKE = qmake-qt4 @@ -132,7 +136,7 @@ yosys-config: yosys-config.in  yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp  	cd libs/svgviewer && $(QMAKE) && make -	cp libs/svgviewer/svgviewer yosys-svgviewer +	cp `find libs/svgviewer -name svgviewer -type f` yosys-svgviewer  yosys-minisat: $(DESTDIR)/bin/minisat  $(DESTDIR)/bin/minisat: | 
