From 64d5941833e34e8811eafe6f09afafd0154fa8f1 Mon Sep 17 00:00:00 2001 From: MURAOKA Taro Date: Thu, 18 Apr 2024 12:47:06 +0900 Subject: [PATCH] fix method to build asm --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fb35989..c584528 100644 --- a/Makefile +++ b/Makefile @@ -49,8 +49,7 @@ zexall: $(MAKE) -C cmd/zexdoc run-all # Generate mnemonic for Z80 emulator, which assembled by Go -z80.asm: - go tool compile -o z80.o -S `go list -f '{{join .GoFiles " "}}'` > $@ - rm -f z80.o +z80.asm: *.go + go build -gcflags "-S" 2> $@ # based on: github.com/koron-go/_skeleton/Makefile