summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-03-06 13:14:06 +0100
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-03-06 13:14:06 +0100
commita91aee034628c498fe0e83eb2fdffb1c11aaa052 (patch)
tree0b5008f664a14c15ab1ab1037369a408d3784492 /Makefile
parent3e590bc6150474e6edebc40505f09d4b998a9c1c (diff)
bump zmq_version
add musl build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 17 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 931a661..c3abae6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,11 @@
include .env
export $(shell sed 's/=.*//' .env)
+CC ?= clang
+CXX ?= clang++
+HOST ?= $(shell gcc -dumpmachin)
+
+
PREFIX := ${PWD}/prefix
.PHONY: clean_download
@@ -66,10 +71,10 @@ download:
# This is just a suggestion of the steps, you should figure on your own what is required
# and what's not.
-# A general rule of thumb is that `make host_depends` works everywhere, but not everything
+# A general rule of thumb is that `make depends_host` works everywhere, but not everything
# is required. But since we target so many different OS.. yeah.
-.PHONY: host_depends
-host_depends: libiconv_host boost_host zlib_host openssl_host openssl_host_alt libzmq_host libsodium_host host_copy_libs libexpat_host unbound_host polyseed_host utf8proc_host
+.PHONY: depends_host
+depends_host: libiconv_host boost_host zlib_host openssl_host openssl_host_alt libzmq_host libsodium_host host_copy_libs libexpat_host unbound_host polyseed_host utf8proc_host
.PHONY: host_copy_libs
host_copy_libs:
@@ -197,4 +202,12 @@ host_tool_perl:
rm perl-${PERL_VERSION_FULL}.tar.gz
cd perl-${PERL_VERSION_FULL} && ./Configure -des -Dprefix=${PREFIX}/perl
cd perl-${PERL_VERSION_FULL} && make -j${NPROC}
- cd perl-${PERL_VERSION_FULL} && make install \ No newline at end of file
+ cd perl-${PERL_VERSION_FULL} && make install
+
+#
+
+.PHONY: alpine_fix_libexecinfo
+alpine_fix_libexecinfo:
+ echo | abuild-keygen -a -q
+ cd external/alpine/libexecinfo && abuild -F -r
+ apk add --allow-untrusted $(shell find ${HOME}/packages -name '*libexecinfo*.apk') \ No newline at end of file