megadrive_test1

changeset 1:9e7f64c4fe7a

fixed missing defines when building romhdr.S
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 30 Jan 2017 08:29:05 +0200
parents 909c22dc18d2
children 51d1d6761601
files Makefile megadrive.ldscript
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/Makefile	Mon Jan 30 08:21:53 2017 +0200
     1.2 +++ b/Makefile	Mon Jan 30 08:29:05 2017 +0200
     1.3 @@ -18,6 +18,7 @@
     1.4  OBJCOPY = $(tool_prefix)objcopy
     1.5  
     1.6  CFLAGS = -m68000 -nostdinc -fno-builtin $(warn) $(dbg) $(opt) $(def)
     1.7 +CPPFLAGS = $(def)
     1.8  ASFLAGS = -m68000
     1.9  LDFLAGS = -T megadrive.ldscript -print-gc-sections
    1.10  
    1.11 @@ -30,3 +31,7 @@
    1.12  .PHONY: clean
    1.13  clean:
    1.14  	rm -f $(obj) $(elf) $(bin)
    1.15 +
    1.16 +.PHONY: run
    1.17 +run: $(bin)
    1.18 +	gens-sdl $<
     2.1 --- a/megadrive.ldscript	Mon Jan 30 08:21:53 2017 +0200
     2.2 +++ b/megadrive.ldscript	Mon Jan 30 08:29:05 2017 +0200
     2.3 @@ -13,10 +13,10 @@
     2.4  	/* .vect section is used to place the m68k exception vectors at the
     2.5  	 * beginning of the address space
     2.6  	 */
     2.7 -	.vect : { KEEP (* (.vect)); } >rom
     2.8 +	.vect : { * (.vect); } >rom
     2.9  	/* .romhdr section is used to place the SEGA ROM header at 0x100 */
    2.10  	. = 0x100;
    2.11 -	.romhdr : { KEEP (* (.romhdr)); } >rom
    2.12 +	.romhdr : { * (.romhdr); } >rom
    2.13  	.text : { * (.text); } >rom
    2.14  	.rodata : { * (.rodata); } >rom
    2.15