Mercurial > hg > old > magoroku_racing
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 |
rev | line source |
---|---|
0 | 1 TARGET = main |
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 | 4 OBJS = ${SRCS:.c=.o} |
5 VU1DIR = vu1code | |
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 | 8 |
9 VPUSRCS = ${VU1DIR}/Makefile ${VU1DIR}/MPG.dsm ${VU1DIR}/basic.vsm ${VU1DIR}/vpu.cmd ${VU1DIR}/vumacros.h | |
10 VU1OBJ = ${VU1DIR}/mpg.elf | |
11 | |
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 | 15 -I./Linda |
16 | |
56 | 17 DEFINES = -DDEBUG -DLINDA |
0 | 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 | 20 |
21 CFLAGS = ${INCLUDES} ${DEFINES} ${DEBUGFLAGS} | |
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 | 24 |
25 all : ${TARGET} | |
26 | |
27 ${VU1OBJ}: ${VPUSRCS} | |
28 cd ${VU1DIR}; make | |
29 cp ${VU1OBJ} . | |
30 | |
24 | 31 #${TARGET} : ${OBJS} ${VU1OBJ} |
32 # ${CC} -o ${TARGET} ${OBJS} ${LIBS} | |
2 | 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 | 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 | 40 |
0 | 41 |
42 tag: | |
43 etags *.[ch] | |
44 | |
45 clean : | |
46 rm -f ${OBJS} | |
47 rm -f ${TARGET} | |
48 rm -f ${MPGOBJ} | |
49 rm -f ${VU1OBJ} | |
50 rm -f *~ | |
51 cd ${VU1DIR}; make clean | |
52 depend: | |
53 makedepend -- ${CFLAGS} -- ${SRCS} ${MAINSRC} | |
54 # DO NOT DELETE | |
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: |