cleaner build process
This commit is contained in:
parent
d914720936
commit
82f80e711e
4
Makefile
4
Makefile
|
@ -23,11 +23,11 @@ try: main.8xk
|
||||||
@echo "CC $<"
|
@echo "CC $<"
|
||||||
@$(CC) $(CFLAGS) $< -o obj/$@
|
@$(CC) $(CFLAGS) $< -o obj/$@
|
||||||
|
|
||||||
main.ihx: $(OBJS)
|
obj/main.ihx: $(OBJS)
|
||||||
@echo "LD $@"
|
@echo "LD $@"
|
||||||
@cd obj && $(CC) -mz80 --no-std-crt0 --code-loc 0x4000 --code-size 0x4000 --xram-loc 0x9D95 --xram-size 0x6060 $^ -o ../$@ && cd ..
|
@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 $@"
|
@echo "IHX->BIN $@"
|
||||||
@objcopy -Iihex -Obinary $< $@
|
@objcopy -Iihex -Obinary $< $@
|
||||||
@echo `stat -c %s $@` bytes
|
@echo `stat -c %s $@` bytes
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
#ifndef _STRING_H
|
||||||
|
#define _STRING_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user