From 82f80e711ef361391e56c5d9284ff7be37b8c62a Mon Sep 17 00:00:00 2001 From: Kamila Szewczyk Date: Sun, 8 Oct 2023 14:42:01 +0200 Subject: [PATCH] cleaner build process --- Makefile | 4 ++-- lib83/string.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bc72e1d..7a2e856 100644 --- a/Makefile +++ b/Makefile @@ -23,11 +23,11 @@ try: main.8xk @echo "CC $<" @$(CC) $(CFLAGS) $< -o obj/$@ -main.ihx: $(OBJS) +obj/main.ihx: $(OBJS) @echo "LD $@" @cd obj && $(CC) -mz80 --no-std-crt0 --code-loc 0x4000 --code-size 0x4000 --xram-loc 0x9D95 --xram-size 0x6060 $^ -o ../$@ && cd .. -main.bin: main.ihx +main.bin: obj/main.ihx @echo "IHX->BIN $@" @objcopy -Iihex -Obinary $< $@ @echo `stat -c %s $@` bytes diff --git a/lib83/string.h b/lib83/string.h index e69de29..962b5af 100644 --- a/lib83/string.h +++ b/lib83/string.h @@ -0,0 +1,8 @@ + +#ifndef _STRING_H +#define _STRING_H + + + +#endif +