diff options
author | Nao Pross <naopross@thearcway.org> | 2017-09-07 14:27:14 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-09-07 14:27:14 +0200 |
commit | 26b68ceb8ec5ccad999a436c7d594d1df3398f04 (patch) | |
tree | cd08864a651d5648f47b1628e3512e5d8457ab3c /sw/z80_test/makefile | |
parent | minor bug fix for ROM programmer (diff) | |
download | z80uPC-26b68ceb8ec5ccad999a436c7d594d1df3398f04.tar.gz z80uPC-26b68ceb8ec5ccad999a436c7d594d1df3398f04.zip |
z80_test cleanup and makefile corrections
Diffstat (limited to '')
-rw-r--r-- | sw/z80_test/makefile | 12 |
1 files changed, 7 insertions, 5 deletions
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 |