Choose the correct assembler
This commit is contained in:
parent
65d4fc76d8
commit
a24547171f
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -2,6 +2,7 @@ CFLAGS?=-O3 --opt-code-speed
|
|||
PLATFORM?=ti8x
|
||||
|
||||
CC=$(shell which zcc z88dk.zcc | head -1)
|
||||
AS=$(shell which z88dk-z80asm z88dk.z88dk-z80asm | head -1)
|
||||
LD=$(CC)
|
||||
SHELL=bash
|
||||
|
||||
|
@ -36,7 +37,7 @@ $(BUILD):
|
|||
@mkdir -p "$@"
|
||||
|
||||
$(BUILD)/gdb.lib: $(BUILD)/gdb.lst $(SRC_OBJECT_FILES)
|
||||
cd $(BUILD) && z88dk.z88dk-z80asm -d -xgdb "@$(subst $(BUILD)/,,$<)"
|
||||
cd $(BUILD) && $(AS) -d -xgdb "@$(subst $(BUILD)/,,$<)"
|
||||
|
||||
$(BUILD)/gdb.lst: | $(BUILD)
|
||||
echo > "$@"
|
||||
|
@ -54,4 +55,4 @@ $(BUILD)/%.o.asm: %.s | $(BUILD)
|
|||
|
||||
.PRECIOUS: $(BUILD)/%.o.asm
|
||||
$(BUILD)/%.o.asm: %.c | $(BUILD)
|
||||
$(call source_compile,-S)
|
||||
$(call source_compile,-S)
|
||||
|
|
Loading…
Add table
Reference in a new issue