]> git.sur5r.net Git - cc65/blob - testcode/lib/pce/Makefile
a4a495c9aa693aca90747776aa991af7769fd134
[cc65] / testcode / lib / pce / Makefile
1 .PHONY: all clean test
2
3 # Size of cartridge to generate.
4 # Possible values:
5 #  8K = 0x2000
6 # 16K = 0x4000
7 # 32K = 0x8000
8 CARTSIZE := 0x2000
9
10 ifeq (${CARTSIZE},0x8000)
11 COUNT := 3
12 else
13 COUNT := 1
14 endif
15
16 all: conio.pce
17
18 %.pce: %.bin
19         dd if=$< bs=8K skip=${COUNT} > $@
20         dd if=$< bs=8K count=${COUNT} >> $@
21
22 %.bin: %.c ../../../lib/pce.lib
23         ../../../bin/cl65 -t pce $< -Wl -D__CARTSIZE__=${CARTSIZE} -m $*.map -o $@
24
25 clean:
26         $(RM) conio.o conio.???
27
28 test: conio.pce
29         mednafen -force_module pce $<