mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-13 12:36:41 +00:00
022fdf1bf3
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
55 lines
1.1 KiB
Makefile
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 $@ $<
|
|
|
|
|