From 8dddb971d923fa19dced39013e6d4a39676e065a Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 29 Aug 2022 18:45:52 +0200 Subject: drop -G flag and add target amd64_apple apple support is more than assembly syntax in case of arm64 machines, and apple syntax is currently useless in all cases but amd64; rather than having a -G option that only makes sense with amd64, we add a new target amd64_apple --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 18a5066..9c9b401 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ PREFIX = /usr/local BINDIR = $(PREFIX)/bin COMMOBJ = main.o util.o parse.o cfg.o mem.o ssa.o alias.o load.o copy.o \ - fold.o live.o spill.o rega.o gas.o + fold.o live.o spill.o rega.o emit.o AMD64OBJ = amd64/targ.o amd64/sysv.o amd64/isel.o amd64/emit.o ARM64OBJ = arm64/targ.o arm64/abi.o arm64/isel.o arm64/emit.o RV64OBJ = rv64/targ.o rv64/abi.o rv64/isel.o rv64/emit.o @@ -30,11 +30,9 @@ main.o: config.h config.h: @case `uname` in \ *Darwin*) \ - echo "#define Defasm Gasmacho"; \ - echo "#define Deftgt T_amd64_sysv"; \ + echo "#define Deftgt T_amd64_apple"; \ ;; \ *) \ - echo "#define Defasm Gaself"; \ case `uname -m` in \ *aarch64*) \ echo "#define Deftgt T_arm64"; \ -- cgit 1.4.1