]> rtime.felk.cvut.cz Git - hercules2020/hercules-compiler.git/blobdiff - Makefile
Build libpremnotify before the compiler
[hercules2020/hercules-compiler.git] / Makefile
index 938764d22b76dc42b90c6783ba534790e38e83a3..819ed3923a4b880d5715dc06acd3b4f1d1faf2b8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
 PREFIX ?= $(HOME)/opt/hercules-compiler
 TMP_DESTDIR = $(CURDIR)/install
 
-all: passes libpremnotify-cpu
+all: libpremnotify-cpu
+all: passes
 
 llvm-clang: build/bin/opt
 
@@ -48,6 +49,8 @@ build_native/build.ninja: | build_native
                -DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_RTTI=ON \
                -DCMAKE_CXX_FLAGS='-DHERCULES_PASS_ROOT=\"$(PREFIX)/lib/hercules\"' \
                -G "Ninja" $(CURDIR)/llvm
+
+libpremnotify-cpu: export CC=$(DEB_HOST_GNU_TYPE)-gcc
 endif
 
 
@@ -89,14 +92,11 @@ install: all
 clean:
        rm -rf build build_passes install
 
-define tar_concat
-$(foreach subarch,$(shell git submodule --quiet foreach 'echo $$toplevel/../$(prefix)-$$path.tar'),tar --concatenate --file=../$(prefix).tar $(subarch)
-)
-endef
-
 create-orig-tgz: prefix=$(notdir $(CURDIR))
+create-orig-tgz: upstream_version=$(shell dpkg-parsechangelog --show-field Version|sed -e s/-.*//)
 create-orig-tgz:
-       git archive --format=tar --prefix=$(prefix)/ -o ../$(prefix).tar HEAD
-       git submodule foreach 'git archive --format=tar --prefix=$(prefix)/$$path/ -o $$toplevel/../$(prefix)-$$path.tar HEAD'
-       $(tar_concat)
-       gzip -c ../$(prefix).tar > "../$(prefix)_$(shell dpkg-parsechangelog --show-field Version|sed -e s/-.*//).orig.tar.gz"
+       git archive --prefix=$(prefix)/ -o ../$(prefix)_$(upstream_version).orig.tar.gz HEAD
+       git submodule foreach 'set -x; git archive --prefix=$$path/ -o $$toplevel/../$(prefix)_$(upstream_version).orig-$$path.tar.gz $$sha1'
+
+cross-tx2:
+       sbuild --host=arm64 -d xenial --add-depends="libc6-dev, libstdc++-5-dev" --build-failed-commands='%s'