summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-08-31 21:29:15 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-10-03 10:41:26 +0200
commit79f3673d205617ac567f0566ebf8f450932d9976 (patch)
tree48ea32843eacd8ac33b4bbcdc975df5d8ab6356c /Makefile
parentbda9f2833c39ea5f4266dbcb4506ed8895e22d3f (diff)
downloadroux-79f3673d205617ac567f0566ebf8f450932d9976.tar.gz
new arm64_apple target
Should make qbe work on apple
arm-based hardware.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 64878c7..674f850 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,14 @@ main.o: config.h
 config.h:
 	@case `uname` in                               \
 	*Darwin*)                                      \
-		echo "#define Deftgt T_amd64_apple";   \
+		case `uname -m` in                     \
+		*arm64*)                               \
+			echo "#define Deftgt T_arm64_apple";\
+			;;                             \
+		*)                                     \
+			echo "#define Deftgt T_amd64_apple";\
+			;;                             \
+		esac                                   \
 		;;                                     \
 	*)                                             \
 		case `uname -m` in                     \