Convert final user of TARGET==darwin to use the cross-compile variables instead

This commit is contained in:
Hamish Coleman
2023-07-03 02:51:20 +08:00
parent 4b4311e2fa
commit 85c8ab536c
4 changed files with 15 additions and 19 deletions
+13 -11
View File
@@ -47,10 +47,6 @@ export CONFIG_TARGET
ifndef CONFIG_TARGET
ifeq ($(shell uname -o),Msys)
CONFIG_TARGET=mingw
else ifeq ($(shell uname -s),Darwin)
CONFIG_TARGET=darwin
else
CONFIG_TARGET=generic
endif
endif
@@ -172,7 +168,7 @@ APPS+=example_sn_embed
DOCS=edge.8.gz supernode.1.gz n2n.7.gz
# This is the superset of all packages that might be needed during the build.
# This is the list of Debian/Ubuntu packages that are needed during the build.
# Mostly of use in automated build systems.
BUILD_DEP:=\
autoconf \
@@ -282,15 +278,21 @@ gcov:
# This is a convinent target to use during development or from a CI/CD system
.PHONY: build-dep
build-dep:
ifeq ($(CONFIG_TARGET),generic)
sudo apt install $(BUILD_DEP)
else ifeq ($(CONFIG_TARGET),darwin)
brew install automake gcovr
ifneq (,$(findstring darwin,$(CONFIG_HOST_OS)))
build-dep: build-dep-brew
else
echo Not attempting to install dependancies for system $(CONFIG_TARGET)
build-dep: build-dep-dpkg
endif
.PHONY: build-dep-dpkg
build-dep-dpkg:
sudo apt install $(BUILD_DEP)
.PHONY: build-dep-brew
build-dep-brew:
brew install automake gcovr
.PHONY: clean
clean:
rm -f src/edge.o src/supernode.o src/example_edge_embed.o src/example_edge_embed_quick_edge_init.o src/example_sn_embed.o