2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
VERSION = 0
|
2017-02-05 16:39:31 +00:00
|
|
|
BUILD = 1
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
CFLAGS = -Wall -O2 -I.
|
2009-02-09 21:15:56 +00:00
|
|
|
DIRS = kernel intro loader
|
2009-03-10 23:05:35 +00:00
|
|
|
FILES = RESET ROMDIR ROMVER IOPBOOT EELOAD \
|
2009-02-09 21:15:56 +00:00
|
|
|
SYSMEM LOADCORE EXCEPMAN INTRMAN SSBUSC DMACMAN \
|
|
|
|
TIMRMAN SYSCLIB HEAPLIB THREADMAN VBLANK STDIO \
|
2009-03-10 23:05:35 +00:00
|
|
|
SIFMAN SIFCMD SIO2MAN LOADER INTRO IOPBTCONF FP2BLOGO
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
.PHONY: clean
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
build/fps2bios: build/ps2romgen_exe build/romdir_exe build/romver_exe | build
|
2009-02-09 21:15:56 +00:00
|
|
|
for i in $(DIRS); do \
|
2017-02-05 16:39:31 +00:00
|
|
|
make -C $$i; \
|
2009-02-09 21:15:56 +00:00
|
|
|
done;
|
|
|
|
cp -f FP2BLOGO build
|
2017-02-05 16:39:31 +00:00
|
|
|
cp -f IOPBTCONF build
|
2009-02-09 21:15:56 +00:00
|
|
|
(cd build; \
|
|
|
|
./romver_exe $(VERSION) $(BUILD); \
|
|
|
|
./romdir_exe $(FILES); \
|
|
|
|
./ps2romgen_exe fps2bios; \
|
|
|
|
cd ..)
|
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
build/ps2romgen_exe: ps2romgen.c | build
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
build/romdir_exe: romdir.c | build
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
build/romver_exe: romver.c | build
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
build:
|
|
|
|
mkdir -p $@
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
clean:
|
|
|
|
rm -f -r *.o build
|
|
|
|
for i in $(DIRS); do \
|
|
|
|
make -C $$i clean; \
|
|
|
|
done;
|