# HG changeset patch # User John Tsiombikas # Date 1485757745 -7200 # Node ID 9e7f64c4fe7ab2b63c9f2145e3833c6528ebcb4e # Parent 909c22dc18d26180e233216c14d4f476b6c1d284 fixed missing defines when building romhdr.S diff -r 909c22dc18d2 -r 9e7f64c4fe7a Makefile --- a/Makefile Mon Jan 30 08:21:53 2017 +0200 +++ b/Makefile Mon Jan 30 08:29:05 2017 +0200 @@ -18,6 +18,7 @@ OBJCOPY = $(tool_prefix)objcopy CFLAGS = -m68000 -nostdinc -fno-builtin $(warn) $(dbg) $(opt) $(def) +CPPFLAGS = $(def) ASFLAGS = -m68000 LDFLAGS = -T megadrive.ldscript -print-gc-sections @@ -30,3 +31,7 @@ .PHONY: clean clean: rm -f $(obj) $(elf) $(bin) + +.PHONY: run +run: $(bin) + gens-sdl $< diff -r 909c22dc18d2 -r 9e7f64c4fe7a megadrive.ldscript --- a/megadrive.ldscript Mon Jan 30 08:21:53 2017 +0200 +++ b/megadrive.ldscript Mon Jan 30 08:29:05 2017 +0200 @@ -13,10 +13,10 @@ /* .vect section is used to place the m68k exception vectors at the * beginning of the address space */ - .vect : { KEEP (* (.vect)); } >rom + .vect : { * (.vect); } >rom /* .romhdr section is used to place the SEGA ROM header at 0x100 */ . = 0x100; - .romhdr : { KEEP (* (.romhdr)); } >rom + .romhdr : { * (.romhdr); } >rom .text : { * (.text); } >rom .rodata : { * (.rodata); } >rom