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:
committed by
Frank Halasz
parent
e074699beb
commit
6d575a8f22
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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}."
|
||||
|
||||
Reference in New Issue
Block a user