pcsx2/fps2bios/Makefile
bigianb 022fdf1bf3 FPS2BIOS.
Small changes to makefile to enable code to compile out of the box. Fix to romdir.c to avoid uninitialised data being written to output.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@743 96395faa-99c1-11dd-bbfe-3dabce05a288
2009-03-10 23:05:35 +00:00

55 lines
1.1 KiB
Makefile

#
#
all: ps2romgen_exe romdir_exe romver_exe fps2bios
VERSION = 0
BUILD = 1
CC = gcc
RM = rm -f
STRIP = strip
OPTIMIZE = -O2 -fomit-frame-pointer -finline-functions -ffast-math
CFLAGS = -Wall ${OPTIMIZE} -I.
DIRS = kernel intro loader
FILES = RESET ROMDIR ROMVER IOPBOOT EELOAD \
SYSMEM LOADCORE EXCEPMAN INTRMAN SSBUSC DMACMAN \
TIMRMAN SYSCLIB HEAPLIB THREADMAN VBLANK STDIO \
SIFMAN SIFCMD SIO2MAN LOADER INTRO IOPBTCONF FP2BLOGO
ps2romgen_exe: ps2romgen.o
${CC} ${CFLAGS} ps2romgen.o -o build/ps2romgen_exe
romdir_exe: romdir.o
${CC} ${CFLAGS} romdir.o -o build/romdir_exe
romver_exe: romver.o
${CC} ${CFLAGS} romver.o -o build/romver_exe
fps2bios:
for i in $(DIRS); do \
(cd $$i; make; cd ..) \
done;
cp -f FP2BLOGO build
cp -f IOPBTCONF build/
(cd build; \
./romver_exe $(VERSION) $(BUILD); \
./romdir_exe $(FILES); \
./ps2romgen_exe fps2bios; \
cd ..)
cp build/fps2bios ../bin/bios
.PHONY: clean ps2romgen_exe romdir_exe fps2bios
clean:
${RM} *.o build/*
for i in $(DIRS); do \
(cd $$i; make clean; cd ..) \
done;
%.o: %.c
${CC} ${CFLAGS} -c -o $@ $<