-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 760 Bytes
/
Makefile
File metadata and controls
30 lines (25 loc) · 760 Bytes
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
CDLIC_FILE = /usr/local/psxsdk/share/licenses/infoeur.dat
NOPS_CMD = mono ~/Tools/nops.exe
#COM_PORT = /dev/cu.usbserial-10
COM_PORT = 192.168.220.33:23
BIN2H = python3 ~/Tools/bin2header.py
all:
psx-gcc ports.c cardlink.c -o cardlink.elf
elf2exe cardlink.elf cardlink.exe -mark_eur
upx -9 cardlink.exe --force
image:
mkdir -p cd_root
psx-gcc ports.c cardlink.c -o cardlink.elf
elf2exe cardlink.elf cardlink.exe -mark_eur
cp cardlink.exe cd_root
systemcnf cardlink.exe > cd_root/system.cnf
mkisofs -o cardlink.hsf -V cardlink -sysid PLAYSTATION cd_root
mkpsxiso cardlink.hsf cardlink.bin $(CDLIC_FILE)
clean:
rm cardlink.elf
rm cardlink.exe
rm cardlink.hsf
rm cardlink.cue
rm cardlink.bin
run:
$(NOPS_CMD) /exe cardlink.exe $(COM_PORT) /m