From 9b9e656da951138f7d5523fd717c86a834211096 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 28 Aug 2017 13:55:35 +0200 Subject: add test program for z80 --- sw/z80_test/makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sw/z80_test/makefile') 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 -- cgit v1.2.1