-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
146 lines (108 loc) · 2.99 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
CC=gcc
#-Wall -Werror -g
CFLAGS = -g -O3 -Werror
LINKER = $(CFLAGS) -Xlinker -Map -Xlinker mapfile.txt -Xlinker -Ttext -Xlinker 8011d9ff # from DATA.H +f 0x80120000
HEADER = DATA.H yar_API.h
PROG = main.exe
OBJS = yar_NY.o yar_API.o game.o
PNGS = TPAGE00.png
#TPAGE02.png TPAGE03.png TPAGE04.png
all: $(PNGS) $(PROG)
rebuild:
make clean
echo ---------- building ------
make all
rerun:
make clean
echo ---------- building ------
make all
make run
$(PROG): $(OBJS) $(HEADER)
ls -lk $(OBJS)
rm -f $@
rm -f mapfile.txt
$(CC) $(LINKER) $(OBJS) -o $@
ls -lk $@
strip $@
.c.o:
echo building $@
rm -f $@
rm -f main.exe
$(CC) $(CFLAGS) -funsigned-char -c $< -o $@
.png.tim:
PSX.bat
psx.exe: $(PROG) main.exe
yarexe DATA.MAK
run: psx.exe
cp -u -f psx.exe C:\misc\PSXCUE\SCI_XPVM.NYE
nopsx psx.exe
# REALLY SLOW!!!! - but yarexe works with software floats also.
makedos:
make clean
dosbox -conf dosbox.conf
make run
pcsxr: $(PROG)
"C:\emulators\pcsxr\pcsxr.exe" -yaroze "C:\Documents and Settings\NetYaroze\Desktop\NY-demos\work\DATA.MAK"
release:
make clean
echo ---------- RELEASE ------
make CFLAGS=" -O3 -Werror -DNETYAROZE -D_RELEASE_" all
yarexe DATA.MAK
make psx.iso
psx.iso: psx.exe
$(info yariso creates iso based on regions (SCEI, SCEA, SCEE) and folder, NYISO or EXEROM folders )
$(info NY = NYISO )
$(info - = EXEROM )
rm -f psx.iso
@echo putting psx.exe into psx.cue psx.bin
yariso SCEI NY
$(info yariso creates psx.iso in C:\psx3\sbin\yariso, you have to copy it back! )
cp -u -f C:\psx3\sbin\yariso\psx.iso .
cp -u -f C:\psx3\sbin\yariso\psx.iso Z:\scrolla-backup\
PLAYISO_NOPSX: psx.iso
$(info nopsx has issues playing the .cue file???)
call nopsx psx.iso
PLAYISO_MED: psx.iso
$(info mednafen only use cue files; works fine )
cp -u -f psx.iso C:\misc\PSXCUE\psx.bin
call C:\emulators\mednafen-1.27.1-win32\mednafen_cue.bat C:\misc\PSXCUE\psx.cue #psx.cue
PLAYISO_XEB: psx.iso
$(info XEBRA only uses cue files; audio CD tracks doesn't work :/ https://emulation.fandom.com/wiki/XEBRA#Loading_Games )
cp -u -f psx.iso C:\misc\PSXCUE\psx.bin
call C:\emulators\xebra210423d\xebra C:\misc\PSXCUE\psx.cue
minicons-exec: $(PROG)
call cmd /C wincmd sioconz.exe EXEC.MAK
minicons:
call cmd /C wincmd sioconz.exe DATA.MAK
debug:
call cmd /C wincmd sioconz.exe GDB.MAK
sioconz:
call cmd /C wincmd sioconz.exe DATA.MAK
# -B115200
# -B1036800
nops-release:
make clean
make CFLAGS=" -O3 -Werror -DNETYAROZE -D_RELEASE_" all
yarexe DATA.MAK
lll psx.exe
#requires --force sometimes? :/
upx --best --force psx.exe
lll psx.exe
# TTY DEBUGGING
# call cmd /C wincmd nops.bat /fast /exe psx.exe /m
# NO DEBUGGING
nops.bat /fast /exe psx.exe
nops-debug:
make clean
make CFLAGS=" -O3 -Werror -DNETYAROZE -D_DEBUG_" all
yarexe DATA.MAK
upx --best psx.exe
call cmd /C wincmd nops.bat /fast /exe psx.exe /m
backup: clean
backup.bat
clean:
del $(PROG)
del *.o
del psx.exe
del main.exe
del psx.iso