-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathMakefile
59 lines (50 loc) · 2.89 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
EE_BIN = MechaPwn.elf
IRX_DIR = irx/compiled
EE_PACKED_BIN = MechaPwn_pck.elf
# C File
EE_OBJS = main.o mecha.o exploit.o pad.o ui.o mass.o
# EE_OBJS += iomanX.o fileXio.o freesio2.o freepad.o mcman.o mcsrv.o USBD.o USBHDFSD.o IndieFlower.o
EE_OBJS += iomanX.o fileXio.o freesio2.o freepad.o USBD.o USBHDFSD.o IndieFlower.o
EE_OBJS += MECHAPROXY_irx.o MASSWATCHER_irx.o pwr50k.o pwr70k.o pwr90k.o frame_001.o frame_002.o frame_003.o frame_004.o frame_005.o frame_006.o frame_007.o frame_008.o frame_009.o frame_010.o frame_011.o frame_012.o frame_013.o frame_014.o frame_015.o frame_016.o frame_017.o frame_018.o frame_019.o frame_020.o frame_021.o frame_022.o frame_023.o frame_024.o frame_025.o frame_026.o frame_027.o frame_028.o frame_029.o frame_030.o frame_031.o frame_032.o frame_033.o frame_034.o frame_035.o frame_036.o frame_037.o frame_038.o frame_039.o frame_040.o frame_041.o frame_042.o frame_043.o frame_044.o frame_045.o frame_046.o frame_047.o frame_048.o frame_049.o frame_050.o frame_051.o frame_052.o frame_053.o frame_054.o frame_055.o frame_056.o frame_057.o frame_058.o frame_059.o frame_060.o frame_061.o frame_062.o
EE_INCS = -I$(PS2SDK)/ports/include -I$(PS2SDK)/sbv/include -I$(PS2SDK)/common/include -I./irx/source/mechaproxy/include/ -I./irx/source/masswatcher/include/ -I$(PS2SDK)/ports/include/freetype2 -I$(GSKIT)/include
EE_LDFLAGS = -L$(PS2SDK)/sbv/lib -L$(PS2SDK)/ports/lib -L$(GSKIT)/lib
EE_LIBS = -lpatches -lpadx -lmc -lfreetype -lpng16 -lz -lgskit -lgskit_toolkit -ldmakit -lfileXio
EE_CFLAGS = -std=c99
BIN2S = $(PS2SDK)/bin/bin2s
all: $(EE_BIN)
ps2-packer $(EE_BIN) $(EE_PACKED_BIN)
clean:
make clean -C irx/source/mechaproxy
make clean -C irx/source/masswatcher
rm -f *.elf *.o *.s resources/*.bin resources/*.pyc *.pyc
#IRX Modules
iomanX.s:
$(BIN2S) $(PS2SDK)/iop/irx/iomanX.irx iomanX.s iomanX
fileXio.s:
$(BIN2S) $(PS2SDK)/iop/irx/fileXio.irx fileXio.s fileXio
freesio2.s:
$(BIN2S) $(PS2SDK)/iop/irx/freesio2.irx freesio2.s freesio2
freepad.s:
$(BIN2S) $(PS2SDK)/iop/irx/freepad.irx freepad.s freepad
# mcman.s:
# $(BIN2S) $(PS2SDK)/iop/irx/mcman.irx mcman.s mcman
# mcsrv.s:
# $(BIN2S) $(PS2SDK)/iop/irx/mcserv.irx mcsrv.s mcserv
USBD.s: $(PS2SDK)/iop/irx/usbd.irx
$(BIN2S) $(PS2SDK)/iop/irx/usbd.irx USBD.s USBD
USBHDFSD.s: $(PS2SDK)/iop/irx/usbhdfsd.irx
$(BIN2S) $(PS2SDK)/iop/irx/usbhdfsd.irx USBHDFSD.s USBHDFSD
MECHAPROXY_irx.s:
$(MAKE) -C irx/source/mechaproxy
$(BIN2S) irx/source/mechaproxy/irx/mechaproxy.irx MECHAPROXY_irx.s MECHAPROXY_irx
MASSWATCHER_irx.s:
$(MAKE) -C irx/source/masswatcher
$(BIN2S) irx/source/masswatcher/irx/masswatcher.irx MASSWATCHER_irx.s MASSWATCHER_irx
IndieFlower.s: resources/IndieFlower-Regular.ttf
$(BIN2S) resources/IndieFlower-Regular.ttf IndieFlower.s IndieFlower
%.s: resources/%
$(BIN2S) $^ $@ $(^F)
resources/%: resources/%.png
python2 resources/conv.py $^ $@
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal