cleaner build process

This commit is contained in:
Kamila Szewczyk 2023-10-08 14:42:01 +02:00
parent d914720936
commit 82f80e711e
Signed by: Palaiologos
GPG Key ID: E34D7BADA3DACC14
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
#ifndef _STRING_H
#define _STRING_H
#endif