From 26b68ceb8ec5ccad999a436c7d594d1df3398f04 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 7 Sep 2017 14:27:14 +0200 Subject: z80_test cleanup and makefile corrections --- sw/z80_test/makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sw/z80_test/makefile') diff --git a/sw/z80_test/makefile b/sw/z80_test/makefile index f718044..6f054ae 100644 --- a/sw/z80_test/makefile +++ b/sw/z80_test/makefile @@ -18,9 +18,9 @@ CFLAGS := -mz80 \ -I . \ -DDEBUG -LDFLAGS := -mz80 --no-std-crt0 crt0.rel \ +LDFLAGS := -mz80 --no-std-crt0 build/crt0.rel \ --std-c89 -pedantic \ - --code-loc 0x0800 --data-loc 0x8000 + --code-loc 0x0800 --data-loc 0x2000 .PHONY: dirs dis clean all: $(BINARY) @@ -29,14 +29,16 @@ all: $(BINARY) $(BINARY): $(OBJECTS) dirs $(CC) $(LDFLAGS) $(OBJECTS) -o $(HEXFILE) @# xxd -r -p $(HEXFILE) $(BINARY) - makebin -s 16384 $(HEXFILE) $(BINARY) + @# makebin -s 16384 $(HEXFILE) $(BINARY) + makebin -s 8192 $(HEXFILE) $(BINARY) -$(OBJECTS): build/%.rel : %.c $(CSOURCES) dirs crt0.rel +$(OBJECTS): build/%.rel : %.c $(CSOURCES) dirs build/crt0.rel @printf "\n" $(CC) $(CFLAGS) -c $< -o $@ -crt0.rel: crt0.s +build/crt0.rel: crt0.s sdasz80 -o $< + @mv crt0.rel build/ dirs: mkdir -p build -- cgit v1.2.1