1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-05 02:35:23 +00:00

Updating darwin makefile-inits for cross-compilation

This commit is contained in:
Frank Halasz
2023-02-19 00:33:27 -08:00
committed by Frank Halasz
parent e074699beb
commit 6d575a8f22
3 changed files with 17 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
# Options for MacOS, aarch64 processor, X windows, for INIT processing
CC = clang $(CLANG_CFLAGS)
CC = clang -target arm64-apple-darwin13 $(CLANG_CFLAGS)
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \

View File

@@ -1,6 +1,6 @@
# Options for MacOS, x86_64 processor, X windows, for INIT processing
CC = clang -m64 $(CLANG_CFLAGS)
CC = clang -m64 -target x86_64-apple-darwin13 $(CLANG_CFLAGS)
XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \

View File

@@ -64,16 +64,22 @@ fi
architecture=`machinetype`
osversion=`osversion`
if test "$osversion" != "darwin"
if test "$target_arch" != ""
then
echo "WARNING: target architecture applies only to the Darwin (MacOS) platform":
echo "Ignoring target architecture argument: $target"
elif test "$target_arch" = "x86_64"
then
architecure=$target_arch
elif test "$target_arch" = "aarch64"
then
architecure=$target_arch
if test "$osversion" != "darwin"
then
echo "!!!!!!!!!! WARNING: target architecture applies only to the Darwin (MacOS) platform"
echo "!!!!!!!!!! Ignoring target architecture argument: $target_arch"
elif test "$target_arch" = "x86_64"
then
architecture=$target_arch
elif test "$target_arch" = "aarch64"
then
architecture=$target_arch
else
echo "!!!!!!!!! WARNING: Unknown target architecture: $target_arch"
echo "!!!!!!!!! Ignoring second argument."
fi
fi
echo "making so far for ${osversion} on ${architecture}."