/[pcsx2_0.9.7]/trunk/fps2bios/Makefile
ViewVC logotype

Contents of /trunk/fps2bios/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 2 months ago) by william
File size: 1102 byte(s)
committing r3113 initial commit again...
1 #
2 #
3
4 all: ps2romgen_exe romdir_exe romver_exe fps2bios
5
6 VERSION = 0
7 BUILD = 1
8
9 CC = gcc
10 RM = rm -f
11 STRIP = strip
12
13 OPTIMIZE = -O2 -fomit-frame-pointer -finline-functions -ffast-math
14 CFLAGS = -Wall ${OPTIMIZE} -I.
15 DIRS = kernel intro loader
16 FILES = RESET ROMDIR ROMVER IOPBOOT EELOAD \
17 SYSMEM LOADCORE EXCEPMAN INTRMAN SSBUSC DMACMAN \
18 TIMRMAN SYSCLIB HEAPLIB THREADMAN VBLANK STDIO \
19 SIFMAN SIFCMD SIO2MAN LOADER INTRO IOPBTCONF FP2BLOGO
20
21 ps2romgen_exe: ps2romgen.o
22 ${CC} ${CFLAGS} ps2romgen.o -o build/ps2romgen_exe
23
24 romdir_exe: romdir.o
25 ${CC} ${CFLAGS} romdir.o -o build/romdir_exe
26
27 romver_exe: romver.o
28 ${CC} ${CFLAGS} romver.o -o build/romver_exe
29
30 fps2bios:
31 for i in $(DIRS); do \
32 (cd $$i; make; cd ..) \
33 done;
34 cp -f FP2BLOGO build
35 cp -f IOPBTCONF build/
36 (cd build; \
37 ./romver_exe $(VERSION) $(BUILD); \
38 ./romdir_exe $(FILES); \
39 ./ps2romgen_exe fps2bios; \
40 cd ..)
41 cp build/fps2bios ../bin/bios
42
43 .PHONY: clean ps2romgen_exe romdir_exe fps2bios
44
45 clean:
46 ${RM} *.o build/*
47 for i in $(DIRS); do \
48 (cd $$i; make clean; cd ..) \
49 done;
50
51 %.o: %.c
52 ${CC} ${CFLAGS} -c -o $@ $<
53
54

  ViewVC Help
Powered by ViewVC 1.1.22