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.2 KB
|
Rev | Line | |
---|
[1101] | 1 | IOP_OBJS = main.o hdd.o apa.o hdl.o imports.o exports.o
|
---|
| 2 |
|
---|
| 3 | IOP_BIN = hdl_info.irx
|
---|
| 4 |
|
---|
| 5 | IOP_CFLAGS += -Wall -fno-builtin
|
---|
| 6 | IOP_LDFLAGS += -s
|
---|
| 7 | IOP_INCS += -I$(PS2SDK)/iop/include -I$(PS2SDK)/common/include
|
---|
| 8 |
|
---|
| 9 | all: $(IOP_BIN)
|
---|
| 10 |
|
---|
| 11 | run: all
|
---|
| 12 | ps2client -h 192.168.0.10 -t 1 execiop host:$(IOP_BIN)
|
---|
| 13 | reset: clean
|
---|
| 14 | ps2client -h 192.168.0.10 reset
|
---|
| 15 |
|
---|
| 16 | clean:
|
---|
| 17 | rm -f *.o *.irx
|
---|
| 18 |
|
---|
| 19 | include $(PS2SDK)/samples/Makefile.pref
|
---|
| 20 | include $(PS2SDK)/samples/Makefile.iopglobal
|
---|
| 21 |
|
---|
| 22 | # compiling with iop-gcc 3.2.2 causes weird problems in ps2ftpd
|
---|
| 23 | # temporary solution is to turn off compiler optimization
|
---|
| 24 |
|
---|
| 25 | IOP_CFLAGS = $(CFLAGS_TARGET) -O2 -G0 -c $(IOP_INCS) -Wall -fno-builtin
|
---|
| 26 | # Iritscen: After first 'make' invocation fails (at top level), remove "-c" argument above and call 'make' again (from top level) to complete build
|
---|
| 27 |
|
---|
| 28 | # A rule to build imports.lst.
|
---|
| 29 | %.o : %.lst
|
---|
| 30 | echo "#include \"irx_imports.h\"" > build-imports.c
|
---|
| 31 | cat $< >> build-imports.c
|
---|
| 32 | $(IOP_CC) $(IOP_CFLAGS) build-imports.c -o $@
|
---|
| 33 | -rm -f build-imports.c
|
---|
| 34 |
|
---|
| 35 | # A rule to build exports.tab.
|
---|
| 36 | %.o : %.tab
|
---|
| 37 | echo "#include \"irx.h\"" > build-exports.c
|
---|
| 38 | cat $< >> build-exports.c
|
---|
| 39 | $(IOP_CC) $(IOP_CFLAGS) build-exports.c -o $@
|
---|
| 40 | -rm -f build-exports.c
|
---|
Note:
See
TracBrowser
for help on using the repository browser.