annotate Makefile @ 90:8edae89a3877

compile on Mac OS X
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 19 May 2011 16:41:21 +0900
parents d578f3f3b0a6
children cb6c6de125dc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 TARGET = main
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
2 CC = gcc
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
3 SRCS = main.c game.c car.c col.c quotanion.c controler.c field.c camera.c gSprite.c schedule.c mytype.c gFont.c carNode.c linda.c light.c title_scene.c game_time.c linda/lindaapi.c
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4 OBJS = ${SRCS:.c=.o}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5 VU1DIR = vu1code
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
7 #MPGOBJ = mpg.elf
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
8
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
9 VPUSRCS = ${VU1DIR}/Makefile ${VU1DIR}/MPG.dsm ${VU1DIR}/basic.vsm ${VU1DIR}/vpu.cmd ${VU1DIR}/vumacros.h
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
10 VU1OBJ = ${VU1DIR}/mpg.elf
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
11
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
12 INCLUDES = \
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
13 #-I/usr/local/include/libps2a \
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
14 #-I/usr/local/include/ps2util \
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
15 -I./Linda
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
16
56
d578f3f3b0a6 *** empty log message ***
gongo
parents: 55
diff changeset
17 DEFINES = -DDEBUG -DLINDA
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
18 DEBUGFLAGS = -Wall -g
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
19 #LIBPS2ARC = /usr/local/lib/libps2a.a
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
20
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
21 CFLAGS = ${INCLUDES} ${DEFINES} ${DEBUGFLAGS}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
22
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
23 #LIBS = `xml-config --libs` -lps2util -lpng -lps2a
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
24
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
25 all : ${TARGET}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
26
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
27 ${VU1OBJ}: ${VPUSRCS}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
28 cd ${VU1DIR}; make
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
29 cp ${VU1OBJ} .
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
30
24
cd33b56a5b41 *** empty log message ***
gongo
parents: 7
diff changeset
31 #${TARGET} : ${OBJS} ${VU1OBJ}
cd33b56a5b41 *** empty log message ***
gongo
parents: 7
diff changeset
32 # ${CC} -o ${TARGET} ${OBJS} ${LIBS}
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
33
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
34 #${AR} x ${LIBPS2ARC} ${MPGOBJ}
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
35
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
36 #${TARGET} : ${OBJS}
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
37 # ${CC} -po ${TARGET} ${OBJS} ${LIBS}
24
cd33b56a5b41 *** empty log message ***
gongo
parents: 7
diff changeset
38 ${TARGET} : ${OBJS}
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
39 ${CC} -o ${TARGET} ${OBJS}
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
40
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
41
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
42 tag:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
43 etags *.[ch]
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
44
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
45 clean :
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
46 rm -f ${OBJS}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
47 rm -f ${TARGET}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
48 rm -f ${MPGOBJ}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
49 rm -f ${VU1OBJ}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
50 rm -f *~
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
51 cd ${VU1DIR}; make clean
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
52 depend:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
53 makedepend -- ${CFLAGS} -- ${SRCS} ${MAINSRC}
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
54 # DO NOT DELETE
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
55
90
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
56 main.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
57 game.o: /Users/e095729/magoroku_racing/Linda/lindaapi.h
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
58 car.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
59 col.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
60 quotanion.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
61 field.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
62 camera.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
63 gaSprite.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
64 schedule.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
65 demo.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
66 mytype.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
67 gFont.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
68 carNode.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
69 linda.o: /Users/e095729/magoroku_racing/Linda/lindaapi.h
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
70 light.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
71 title_scene.o:
8edae89a3877 compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents: 56
diff changeset
72 game_time.o: