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

Annotation of /trunk/fps2bios/kernel/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 10 months ago) by william
File size: 1766 byte(s)
committing r3113 initial commit again...
1 william 31 # _____ ___ ____
2     # ____| | ____| PSX2 OpenSource Project
3     # | ___| |____ (C)2002, David Ryan ( Oobles@hotmail.com )
4     # ------------------------------------------------------------------------
5    
6     # Generated automatically from Makefile.in by configure.
7     #.SUFFIXES: .S .c .o .s .elf .irx
8    
9     # ------------------------------------------------------------------------
10     # COMPILERS
11    
12     IOPCC = iop-gcc
13     IOPAR = iop-ar
14     IOPLD = iop-ld
15     IOPAS = iop-as
16     EECC = ee-gcc
17     EEAR = ee-ar
18     EELD = ee-gcc
19    
20    
21     # ------------------------------------------------------------------------
22     # DIRECTORY PATHS & FLAGS
23    
24    
25     EECFLAGS = -O2 -fomit-frame-pointer -mips3 -EL -nostartfiles -G0
26     EEINCLUDES = -I. -I$(PS2LIB)/common/include -I$(PS2LIB)/ee/include
27    
28     IOPCFLAGS = -O2 -fomit-frame-pointer -nostartfiles -G0
29     IOPINCLUDES = -I. -I$(PS2LIB)/common/include -I$(PS2LIB)/iop/include
30     IOPCOMPILE = $(IOPCC) $(IOPINCLUDES) $(IOPCFLAGS)
31     IOPLINK = $(IOPLD) -dc
32    
33    
34     # ------------------------------------------------------------------------
35     # PROJECTS TO BUILD
36    
37     all: start
38    
39    
40     # ------------------------------------------------------------------------
41     # KERNEL BUILD INSTRUCTIONS
42    
43     OBJS = eestart.o iopstart.o start.o romdir.o
44     DIRS = eeload iopload
45    
46     start: $(OBJS)
47     for i in $(DIRS); do \
48     (cd $$i; make; cd ..) \
49     done;
50     $(EELD) -Wl,--oformat,binary -T linkfile $(EECFLAGS) $(OBJS) -o ../build/RESET
51    
52     iopstart.o: iopstart.c
53     $(IOPCC) $(IOPINCLUDES) $(IOPCFLAGS) -o $@ -c $<
54    
55     eestart.o: eestart.c
56     $(EECC) $(EEINCLUDES) $(EECFLAGS) -o $@ -c $<
57    
58     romdir.o: romdir.c
59     $(IOPCC) $(IOPINCLUDES) $(IOPCFLAGS) -o $@ -c $<
60    
61     start.o: start.c
62     $(IOPCC) $(IOPINCLUDES) $(IOPCFLAGS) -o $@ -c $<
63    
64    
65    
66     clean:
67     for i in $(DIRS); do \
68     (cd $$i; make clean; cd ..) \
69     done;
70     rm -f $(OBJS) start
71    
72    
73    

  ViewVC Help
Powered by ViewVC 1.1.22