Last change
on this file since 1109 was 1101, checked in by iritscen, 7 years ago |
Added following to ps2launchargs:\n-Source code.\n-DLL needed to run ps2client.\n-Instructions for building uLaunchELF.
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | EE_INCS := $(EE_INCS) -I$(PS2SDK)/sbv/include
|
---|
2 |
|
---|
3 | EE_CFLAGS := -mips3 -ffreestanding -fno-builtin -G0 \
|
---|
4 | -fshort-double -mlong64 -mhard-float -mno-abicalls -O2 -EL -Wall \
|
---|
5 | $(EE_INCS) $(EE_CFLAGS)
|
---|
6 |
|
---|
7 | EE_ASFLAGS := -EL -G0 $(EE_ASFLAGS)
|
---|
8 |
|
---|
9 | ###dlanor: adjust these three, for PS2Link compatibility tests
|
---|
10 | ###dlanor: old LaunchELF used LA=0x90000, SA=0xB0000, SS=0x08000
|
---|
11 | ###dlanor: The values below were implemented in LaunchELF v3.50
|
---|
12 | LOADADDR = 0x90000
|
---|
13 | STACKADDR = 0xA8000
|
---|
14 | STACKSIZE = 0x04000
|
---|
15 |
|
---|
16 | ifeq ($(DEBUG),1)
|
---|
17 | LOADADDR = 0x1700000
|
---|
18 | STACKADDR = 0x1720000
|
---|
19 | STACKSIZE = 0x08000
|
---|
20 | endif
|
---|
21 |
|
---|
22 | LDPARAMS := -Wl,--defsym -Wl,_stack_size=$(STACKSIZE) -Wl,--defsym -Wl,_stack=$(STACKADDR)
|
---|
23 |
|
---|
24 | EE_LDFLAGS += -Wl,-Ttext -Wl,$(LOADADDR) -s $(LDPARAMS)
|
---|
25 |
|
---|
26 | EE_LDFLAGS := $(EE_LDFLAGS) -L$(PS2SDK)/sbv/lib \
|
---|
27 |
|
---|
28 | EE_BIN = loader.elf
|
---|
29 |
|
---|
30 | EE_OBJS = loader.o
|
---|
31 |
|
---|
32 | EE_LIBS = -lfileXio -lpatches
|
---|
33 | ifeq ($(DEBUG),1)
|
---|
34 | EE_LIBS += -ldebug
|
---|
35 | endif
|
---|
36 |
|
---|
37 | all: $(EE_BIN)
|
---|
38 |
|
---|
39 | clean:
|
---|
40 | rm -f *.o *.a *.s *.elf
|
---|
41 |
|
---|
42 | include $(PS2SDK)/samples/Makefile.pref
|
---|
43 | include $(PS2SDK)/samples/Makefile.eeglobal
|
---|
Note:
See
TracBrowser
for help on using the repository browser.