copy to ram and initialze sprite from c
[swan-dev] / Makefile
index 9403cf9..de9a494 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,20 +3,28 @@ INC=./inc
 CC=bcc
 LD=ld86
 AS=nasm
+MED=mednafen
 
 #$(LD) -M src/*.o
 
 # -d delete headers
 # -s strip symbols
 all:
-       $(LD) src/*.o -d -s -o test.wsc
+       $(LD) -T0x0 -D0xF000 src/*.o -d -s -o test.wsc
 
 # use -x to for -ffreestanding
 c-files:
-       $(CC) -O -c src/*.c -I$(INC)
+       $(CC) -0 -c src/*.c -I$(INC)
 init:
        $(AS) -fas86 src/*.s -i $(INC)
 
+add:
+       cp test.wsc tools/
+       cd tools && ./romheader
+
+run:
+       $(MED) tools/test.wsc
+
 clean:
        rm -rf src/*.o test.wsc