forked from emukidid/Wii64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.GX_gfx_wii
224 lines (176 loc) · 5.23 KB
/
Makefile.GX_gfx_wii
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
#Makefile MUPEN64GC for Wii with GX Rendered Graphics
CC =powerpc-gekko-gcc
CXX =powerpc-gekko-g++
AS =powerpc-gekko-as
CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE) -fmodulo-sched \
-DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DVAR_CYCLES -DSOUND \
-DNOASM -DNGC -DNOASM -DPIXEL_FORMAT=RGB565 \
-fno-exceptions -Wno-unused-parameter -pipe \
-DUSE_GUI -DSHOW_DEBUG -DPROFILE -DWII \
-DTHREADED_AUDIO -DUSE_TLB_CACHE
#-DPRINTGECKO
MACHDEP = -DGEKKO -mcpu=750 -meabi -mhard-float
LDFLAGS = $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map -Wl,--cref
INCLUDE = -I$(DEVKITPRO)/libogc/include -I$(DEVKITPRO)/libfat/libogc/include
LIBPATHS = -L$(DEVKITPRO)/libogc/lib/wii -L$(DEVKITPRO)/libfat/libogc/lib/wii
CXXFLAGS =$(CFLAGS)
OBJ =main/rom_gc.o \
main/main_gc-menu.o \
main/gc_dvd.o \
main/gczip.o \
main/ROM-Cache.o \
fileBrowser/fileBrowser-DVD.o \
fileBrowser/fileBrowser-libfat.o \
fileBrowser/fileBrowser-WiiFS.o \
fileBrowser/HW64/customTitle.o \
fileBrowser/fileBrowser-CARD.o \
fileBrowser/fileBrowser.o \
gui/menu.o \
gui/menuFileBrowser.o \
gui/background_tex.o \
gui/gui_GX-menu.o \
gui/GUI.o \
gui/DEBUG.o \
gui/TEXT.o \
gui/font.o \
r4300/r4300.o \
r4300/exception.o \
r4300/Invalid_Code.o \
gc_memory/ARAM.o \
gc_memory/tlb.o \
gc_memory/TLB-Cache-hash.o \
gc_memory/memory.o \
gc_memory/dma.o \
r4300/interupt.o \
r4300/recomp.o \
gc_memory/n64_cic_nus_6105.o \
gc_memory/pif.o \
r4300/pure_interp.o \
r4300/compare_core.o \
gc_memory/flashram.o \
main/md5.o \
main/savestates_gc.o \
r4300/profile.o \
main/adler32.o
OBJ_PPC =r4300/ppc/MIPS-to-PPC.o \
r4300/ppc/Recompile.o \
r4300/ppc/Wrappers.o \
r4300/ppc/ppc_disasm.o
OBJ_X86 =r4300/x86/gr4300.o \
r4300/x86/gcop0.o \
r4300/x86/assemble.o \
r4300/x86/gcop1.o \
r4300/x86/gcop1_s.o \
r4300/x86/gcop1_d.o \
r4300/x86/gtlb.o \
r4300/x86/gregimm.o \
r4300/x86/gspecial.o \
r4300/x86/gcop1_w.o \
r4300/x86/debug.o \
r4300/x86/rjump.o \
r4300/x86/gbc.o \
r4300/x86/gcop1_l.o \
r4300/x86/regcache.o
OBJ_GTK_GUI =main/gui_gtk/main_gtk.o \
main/gui_gtk/translate.o \
main/gui_gtk/messagebox.o \
main/gui_gtk/aboutdialog.o \
main/gui_gtk/configdialog.o \
main/gui_gtk/support.o \
main/gui_gtk/rombrowser.o \
main/gui_gtk/romproperties.o \
main/gui_gtk/config.o \
main/gui_gtk/dirbrowser.o
OBJ_INPUT =gc_input/main.o \
gc_input/controller-GC.o \
gc_input/controller-Classic.o
OBJ_RSPHLE =rsp_hle-ppc/main.o \
rsp_hle-ppc/jpeg.o \
rsp_hle-ppc/ucode3.o \
rsp_hle-ppc/ucode2.o \
rsp_hle-ppc/ucode1.o
OBJ_AUDIO =gc_audio/main.o
OBJ_GX_GFX =GX_gfx/main.o \
GX_gfx/rsp_GX.o \
GX_gfx/tx_GX.o \
GX_gfx/cc_GX.o \
GX_gfx/bl_GX.o \
GX_gfx/vi_GX.o \
GX_gfx/vi.o
HEADER =main/rom.h \
r4300/r4300.h \
r4300/macros.h \
r4300/exception.h \
gc_memory/memory.h \
gc_memory/tlb.h \
gc_memory/dma.h \
r4300/interupt.h \
r4300/recomp.h \
gc_memory/pif.h
LIB = -lm -lfat -ldb -lwiiuse -lbte -logc -lz
ifeq ($(strip mupen64_GX_gfx/main.cpp),)
export LD := $(CC)
else
export LD := $(CXX)
endif
all: wii64-GX.elf
r4300/interupt.o: r4300/interupt.c
$(CC) $(CFLAGS) -c -o $@ $<
main/main.o: main/main.c
$(CC) $(CFLAGS) -c -o $@ $<
main/main_gtk.o: main/main_gtk.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/main_gtk.o: main/gui_gtk/main_gtk.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/translate.o: main/gui_gtk/translate.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/messagebox.o: main/gui_gtk/messagebox.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/aboutdialog.o: main/gui_gtk/aboutdialog.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/configdialog.o: main/gui_gtk/configdialog.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/support.o: main/gui_gtk/support.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/rombrowser.o: main/gui_gtk/rombrowser.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/romproperties.o: main/gui_gtk/romproperties.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/config.o: main/gui_gtk/config.c
$(CC) $(CFLAGS) -c -o $@ $<
main/gui_gtk/dirbrowser.o: main/gui_gtk/dirbrowser.c
$(CC) $(CFLAGS) -c -o $@ $<
gui/background_tex.o: gui/background_tex.s
$(CC) $(CFLAGS) -c -o $@ $<
gc_input/main.o: gc_input/input.c
$(CC) $(CFLAGS) -c -o $@ $<
rsp_hle-ppc/main.o: rsp_hle-ppc/main.c
$(CC) $(CFLAGS) -c -o $@ $<
gc_audio/main.o: gc_audio/audio.c
$(CC) $(CFLAGS) -c -o $@ $<
GX_gfx/main.o: GX_gfx/main.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
GX_gfx/vi_GX.o: GX_gfx/vi_GX.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
r4300/ppc/Wrappers.o: r4300/ppc/Wrappers.s
$(CC) $(CFLAGS) -c -o $@ $<
wii64-GX.elf: $(OBJ) $(OBJ_INPUT) $(OBJ_GX_GFX) $(OBJ_AUDIO) $(OBJ_RSPHLE) main/main_gc-menu.o #$(OBJ_PPC)
$(LD) $^ $(LDFLAGS) $(LIBPATHS) $(LIB) -Wl -o $@
powerpc-gekko-objcopy -O binary $@ wii64-GX.dol
dollz3 wii64-GX.dol wii64z.dol
install:
cp mupen64 "$(PREFIX)bin"
cp mupen64_nogui "$(PREFIX)bin"
mkdir "$(SHARE)" | echo
cp -rv mupen64.ini "$(SHARE)"
cp -rv lang "$(SHARE)"
cp -rv plugins "$(SHARE)"
cp -rv doc "$(SHARE)"
clean:
find . -name '*.o' -print0 | xargs -0r rm -f
clean_o:
find . -name '*.o' -print0 | xargs -0r rm -f
clean_jed:
find . -name '*~' -print0 | xargs -0r rm -f
gprof:
gprof mupen64_nogui > stat.txt