-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (28 loc) · 774 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SRC = c64_play.a65
PRG = c64_play.prg
PRG65 = m65_play.prg
CL65 = cl65
#CL65OPT = -t none --config ld.cfg
CL65OPT = -t none
VICE = x64
XEMU = xemu-xmega65
M65 = mega65_etherload
ALLDEP = Makefile test.dro ld.cfg
all: $(PRG) $(PRG65)
$(PRG): $(SRC) $(ALLDEP)
@echo "*** Compiling $< to $@ for C64/M65 with SFX cartridge/compatibility mode ..."
$(CL65) $(CL65OPT) -o $@ $<
cp $@ prg-files/
$(PRG65): $(SRC) $(ALLDEP)
@echo "*** Compiling $< to $@ for M65 only for its native OPL access mode ..."
$(CL65) --asm-define MEGA65 $(CL65OPT) -o $@ $<
cp $@ prg-files/
vice: $(PRG)
$(VICE) -sfxse -sfxsetype 3812 -autostartprgmode 1 -autostart $<
xemu: $(PRG65)
$(XEMU) -prg $<
mega65: $(PRG65)
$(M65) -r $<
clean:
rm -f *.o *.prg
.PHONY: vice xemu mega65 clean all