-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
44 lines (36 loc) · 1.07 KB
/
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
37
38
39
40
41
42
43
44
#
# Makefile
# Choplifter Reverse Engineer
#
# Created by Quinn Dunki on May 5, 2024
# https://blondihacks.com
#
CL65=cl65
CAD=./cadius
ADDR=800
LOADERADDR=300
VOLNAME=CHOPLIFTER
IMG=DiskImageParts
PGM=choplifter
EXECNAME=CHOP.SYSTEM\#FF2000
all: clean diskimage loader $(PGM) emulate
$(PGM):
@PATH=$(PATH):/usr/local/bin; $(CL65) -C linkerConfig -t apple2 --start-addr $(ADDR) -l$(PGM).lst $(PGM).s
$(CAD) ADDFILE $(VOLNAME).po /$(VOLNAME) CHOP0
$(CAD) ADDFILE $(VOLNAME).po /$(VOLNAME) CHOP1
$(CAD) ADDFILE $(VOLNAME).po /$(VOLNAME) CHOPGFX
$(CAD) ADDFILE $(VOLNAME).po /$(VOLNAME) CHOPGFXHI
rm -f $(PGM).o
diskimage:
$(CAD) CREATEVOLUME $(VOLNAME).po $(VOLNAME) 143KB
$(CAD) ADDFILE $(VOLNAME).po /$(VOLNAME) $(IMG)/PRODOS/PRODOS#FF0000
clean:
rm -f $(PGM)
rm -f $(PGM).o
emulate:
osascript V2Make.scpt $(PROJECT_DIR) $(VOLNAME)
loader:
@PATH=$(PATH):/usr/local/bin; $(CL65) -C linkerConfigLoader -t apple2 --start-addr $(LOADERADDR) -lloader.lst loader.s -o $(EXECNAME)
$(CAD) ADDFILE $(VOLNAME).po /$(VOLNAME) $(EXECNAME)
rm -f $(LOADEREXEC)
rm -f loader.o