diff options
author | Siesh1oo <siesh1oo@siesh1oo.no> | 2014-03-10 20:06:46 +0100 |
---|---|---|
committer | Siesh1oo <siesh1oo@siesh1oo.no> | 2014-03-13 11:29:15 +0100 |
commit | 1d0abb3ad2a85188eef6201e0a32acbcec1e78b3 (patch) | |
tree | f69f4b2a292c4d0ff232bae892d9cc2e2997779c | |
parent | 26895223a1b2528f8416d3d3ca19d540c38c3cfe (diff) | |
download | yosys-1d0abb3ad2a85188eef6201e0a32acbcec1e78b3.tar.gz yosys-1d0abb3ad2a85188eef6201e0a32acbcec1e78b3.tar.bz2 yosys-1d0abb3ad2a85188eef6201e0a32acbcec1e78b3.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 | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -26,13 +26,17 @@ CXXFLAGS = -Wall -Wextra -ggdb -I"$(shell pwd)" -I${DESTDIR}/include -MD -D_YOSY LDFLAGS = -L${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 |