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