projects
/
swan-dev
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
copy to ram and initialze sprite from c
[swan-dev]
/
Makefile
1
# simple makefile
2
INC=./inc
3
CC=bcc
4
LD=ld86
5
AS=nasm
6
MED=mednafen
7
8
#$(LD) -M src/*.o
9
10
# -d delete headers
11
# -s strip symbols
12
all:
13
$(LD) -T0x0 -D0xF000 src/*.o -d -s -o test.wsc
14
15
# use -x to for -ffreestanding
16
c-files:
17
$(CC) -0 -c src/*.c -I$(INC)
18
init:
19
$(AS) -fas86 src/*.s -i $(INC)
20
21
add:
22
cp test.wsc tools/
23
cd tools && ./romheader
24
25
run:
26
$(MED) tools/test.wsc
27
28
clean:
29
rm -rf src/*.o test.wsc
30
31