source: ps2launchargs/source/uLaunchELF/loader/Makefile@ 1101

Last change on this file since 1101 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
3EE_CFLAGS := -mips3 -ffreestanding -fno-builtin -G0 \
4 -fshort-double -mlong64 -mhard-float -mno-abicalls -O2 -EL -Wall \
5 $(EE_INCS) $(EE_CFLAGS)
6
7EE_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
12LOADADDR = 0x90000
13STACKADDR = 0xA8000
14STACKSIZE = 0x04000
15
16ifeq ($(DEBUG),1)
17LOADADDR = 0x1700000
18STACKADDR = 0x1720000
19STACKSIZE = 0x08000
20endif
21
22LDPARAMS := -Wl,--defsym -Wl,_stack_size=$(STACKSIZE) -Wl,--defsym -Wl,_stack=$(STACKADDR)
23
24EE_LDFLAGS += -Wl,-Ttext -Wl,$(LOADADDR) -s $(LDPARAMS)
25
26EE_LDFLAGS := $(EE_LDFLAGS) -L$(PS2SDK)/sbv/lib \
27
28EE_BIN = loader.elf
29
30EE_OBJS = loader.o
31
32EE_LIBS = -lfileXio -lpatches
33ifeq ($(DEBUG),1)
34EE_LIBS += -ldebug
35endif
36
37all: $(EE_BIN)
38
39clean:
40 rm -f *.o *.a *.s *.elf
41
42include $(PS2SDK)/samples/Makefile.pref
43include $(PS2SDK)/samples/Makefile.eeglobal
Note: See TracBrowser for help on using the repository browser.