forked from ps2homebrew/wLaunchELF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
130 lines (95 loc) · 3.06 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
.SILENT:
SMB = 0
#set SMB to 1 to build uLe with smb support
EE_BIN = BOOT.ELF
EE_BIN_PKD = ULE.ELF
EE_OBJS = main.o pad.o config.o elf.o draw.o loader.o filer.o \
poweroff.o iomanx.o filexio.o ps2atad.o ps2dev9.o smsutils.o ps2ip.o\
ps2smap.o ps2hdd.o ps2fs.o ps2netfs.o usbd.o usbhdfsd.o mcman.o mcserv.o\
cdvd.o ps2ftpd.o ps2host.o vmc_fs.o fakehost.o ps2kbd.o\
hdd.o hdl_rpc.o hdl_info.o editor.o timer.o jpgviewer.o icon.o lang.o\
font_uLE.o makeicon.o chkesr.o sior.o allowdvdv.o
ifeq ($(SMB),1)
EE_OBJS += smbman.o
endif
EE_INCS := -I$(PS2DEV)/gsKit/include -I$(PS2SDK)/ports/include -Ioldlibs/libcdvd/ee
EE_LDFLAGS := -L$(PS2DEV)/gsKit/lib -L$(PS2SDK)/ports/lib -Loldlibs/bin -s
EE_LIBS = -lpad -lgskit -ldmakit -ljpeg -lmc -lhdd -lcdvdfs -lkbd -lmf -lcdvd -lc -lfileXio -lpatches -lpoweroff -ldebug -lc -lsior
ifeq ($(SMB),1)
EE_CFLAGS += -DSMB
endif
all: $(EE_BIN)
ps2-packer $(EE_BIN) $(EE_BIN_PKD)
run: all
ps2client -h 192.168.0.10 -t 1 execee host:BOOT.ELF
reset: clean
ps2client -h 192.168.0.10 reset
mcman.s:
bin2s $(PS2SDK)/iop/irx/mcman.irx mcman.s mcman_irx
mcserv.s:
bin2s $(PS2SDK)/iop/irx/mcserv.irx mcserv.s mcserv_irx
usbd.s:
bin2s $(PS2SDK)/iop/irx/usbd.irx usbd.s usbd_irx
usbhdfsd.s:
bin2s $(PS2SDK)/iop/irx/usbhdfsd.irx usbhdfsd.s usb_mass_irx
cdvd.s:
bin2s oldlibs/bin/cdvd.irx cdvd.s cdvd_irx
poweroff.s:
bin2s $(PS2SDK)/iop/irx/poweroff.irx poweroff.s poweroff_irx
iomanx.s:
bin2s $(PS2SDK)/iop/irx/iomanX.irx iomanx.s iomanx_irx
filexio.s:
bin2s $(PS2SDK)/iop/irx/fileXio.irx filexio.s filexio_irx
ps2dev9.s:
bin2s $(PS2SDK)/iop/irx/ps2dev9.irx ps2dev9.s ps2dev9_irx
ps2ip.s:
bin2s oldlibs/bin/SMSTCPIP.irx ps2ip.s ps2ip_irx
ps2smap.s:
bin2s oldlibs/bin/SMSMAP.irx ps2smap.s ps2smap_irx
smsutils.s:
bin2s oldlibs/bin/SMSUTILS.irx smsutils.s smsutils_irx
ps2ftpd.s:
bin2s oldlibs/bin/ps2ftpd.irx ps2ftpd.s ps2ftpd_irx
ps2atad.s:
bin2s $(PS2SDK)/iop/irx/ps2atad.irx ps2atad.s ps2atad_irx
ps2hdd.s:
bin2s $(PS2SDK)/iop/irx/ps2hdd.irx ps2hdd.s ps2hdd_irx
ps2fs.s:
bin2s $(PS2SDK)/iop/irx/ps2fs.irx ps2fs.s ps2fs_irx
ps2netfs.s:
bin2s $(PS2SDK)/iop/irx/ps2netfs.irx ps2netfs.s ps2netfs_irx
fakehost.s:
bin2s $(PS2SDK)/iop/irx/fakehost.irx fakehost.s fakehost_irx
hdl_info.s:
$(MAKE) -C hdl_info
bin2s hdl_info/hdl_info.irx hdl_info.s hdl_info_irx
ps2host.s:
$(MAKE) -C ps2host
bin2s ps2host/ps2host.irx ps2host.s ps2host_irx
ifeq ($(SMB),1)
smbman.s:
bin2s $(PS2SDK)/iop/irx/smbman.irx smbman.s smbman_irx
endif
vmc_fs.s:
$(MAKE) -C vmc_fs
bin2s vmc_fs/vmc_fs.irx vmc_fs.s vmc_fs_irx
loader.s:
$(MAKE) -C loader
bin2s loader/loader.elf loader.s loader_elf
ps2kbd.s:
bin2s $(PS2SDK)/iop/irx/ps2kbd.irx ps2kbd.s ps2kbd_irx
sior.s:
bin2s $(PS2SDK)/iop/irx/sior.irx sior.s sior_irx
allowdvdv.s:
$(MAKE) -C AllowDVDV
bin2s AllowDVDV/AllowDVDV.irx allowdvdv.s allowdvdv_irx
clean:
$(MAKE) -C hdl_info clean
$(MAKE) -C ps2host clean
$(MAKE) -C loader clean
$(MAKE) -C vmc_fs clean
$(MAKE) -C AllowDVDV clean
rm -f *.o *.a *.s *.ELF
rebuild: clean all
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal