megadrive_test1
diff Makefile @ 4:e7138066c7ea
started the vdp.h header, and hastily rewrote the VDP test as C code
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 01 Feb 2017 13:40:50 +0200 |
parents | 9e7f64c4fe7a |
children | 862f8a034cae |
line diff
1.1 --- a/Makefile Tue Jan 31 07:11:17 2017 +0200 1.2 +++ b/Makefile Wed Feb 01 13:40:50 2017 +0200 1.3 @@ -1,6 +1,7 @@ 1.4 +csrc = $(wildcard src/*.c) 1.5 asrc = $(wildcard src/*.s) 1.6 aSsrc = $(wildcard src/*.S) 1.7 -obj = $(asrc:.s=.o) $(aSsrc:.S=.o) 1.8 +obj = $(asrc:.s=.o) $(aSsrc:.S=.o) $(csrc:.c=.o) 1.9 1.10 name = test1 1.11 elf = $(name).elf 1.12 @@ -17,7 +18,7 @@ 1.13 LD = $(tool_prefix)ld 1.14 OBJCOPY = $(tool_prefix)objcopy 1.15 1.16 -CFLAGS = -m68000 -nostdinc -fno-builtin $(warn) $(dbg) $(opt) $(def) 1.17 +CFLAGS = -m68000 -fno-builtin $(warn) $(dbg) $(opt) $(def) 1.18 CPPFLAGS = $(def) 1.19 ASFLAGS = -m68000 1.20 LDFLAGS = -T megadrive.ldscript -print-gc-sections