diff options
author | Nao Pross <naopross@thearcway.org> | 2017-08-28 13:55:35 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-08-28 13:55:35 +0200 |
commit | 9b9e656da951138f7d5523fd717c86a834211096 (patch) | |
tree | 397be6d5fb2ea3566efcf7d6684660e8a2ab9593 /sw/z80_test/makefile | |
parent | update gitignore to ignore sdcc output (diff) | |
download | z80uPC-9b9e656da951138f7d5523fd717c86a834211096.tar.gz z80uPC-9b9e656da951138f7d5523fd717c86a834211096.zip |
add test program for z80
Diffstat (limited to '')
-rw-r--r-- | sw/z80_test/makefile | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/z80_test/makefile b/sw/z80_test/makefile index c709d61..f718044 100644 --- a/sw/z80_test/makefile +++ b/sw/z80_test/makefile @@ -1,11 +1,9 @@ #### # source code settings # -OSNAME := helvetiOS_test +OSNAME := sample -CSOURCES := $(wildcard kernel/*.c) \ - $(wildcard kernel/drivers/*.c) \ - $(wildcard libc/*.c) +CSOURCES := $(wildcard *.c) OBJECTS := $(patsubst %.c,build/%.rel,$(CSOURCES)) HEXFILE := build/$(OSNAME).hex @@ -17,9 +15,7 @@ BINARY := build/$(OSNAME).bin CC := sdcc CFLAGS := -mz80 \ - -I kernel/include \ - -I kernel/include/drivers \ - -I libc/include \ + -I . \ -DDEBUG LDFLAGS := -mz80 --no-std-crt0 crt0.rel \ @@ -43,7 +39,7 @@ crt0.rel: crt0.s sdasz80 -o $< dirs: - mkdir -p build build/kernel build/libc + mkdir -p build dis: $(BINARY) @# z80dasm -a -l -g 0h $< -o build/$(OSNAME).s |