aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSiesh1oo <siesh1oo@siesh1oo.no>2014-03-10 15:07:37 +0100
committerSiesh1oo <siesh1oo@siesh1oo.no>2014-03-10 15:07:37 +0100
commit63ca8d3fe4273d9e07233f94037a63659d6d18e4 (patch)
treef35745a9febc8330e2e3c75e7776e0d3cc7377f2 /Makefile
parent8a0216bd9f81faf45e1ff463edcc6d82dfa20565 (diff)
downloadyosys-63ca8d3fe4273d9e07233f94037a63659d6d18e4.tar.gz
yosys-63ca8d3fe4273d9e07233f94037a63659d6d18e4.tar.bz2
yosys-63ca8d3fe4273d9e07233f94037a63659d6d18e4.zip
- Makefile, techlibs/common/Makefile.inc: call GNU sed instead of BSD sed on OSX (for extended regular expressions).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c0d43a2c3..7bd8a450e 100644
--- a/Makefile
+++ b/Makefile
@@ -32,10 +32,12 @@ ifeq (Darwin,$(findstring Darwin,$(shell uname)))
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+
@@ -134,7 +136,7 @@ kernel/version_$(GIT_REV).cc: Makefile
echo "extern const char *yosys_version_str; const char *yosys_version_str=\"Yosys $(YOSYS_VER) (git sha1 $(GIT_REV))\";" > kernel/version_$(GIT_REV).cc
yosys-config: yosys-config.in
- sed -e 's,@CXX@,$(CXX),;' -e 's,@CXXFLAGS@,$(CXXFLAGS),;' -e 's,@LDFLAGS@,$(LDFLAGS),;' -e 's,@LDLIBS@,$(LDLIBS),;' \
+ $(SED) -e 's,@CXX@,$(CXX),;' -e 's,@CXXFLAGS@,$(CXXFLAGS),;' -e 's,@LDFLAGS@,$(LDFLAGS),;' -e 's,@LDLIBS@,$(LDLIBS),;' \
-e 's,@BINDIR@,$(DESTDIR)/bin,;' -e 's,@DATDIR@,$(DESTDIR)/share/yosys,;' < yosys-config.in > yosys-config
chmod +x yosys-config
@@ -144,7 +146,7 @@ yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp
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 )
+ 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)." )