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