Mercurial > hg > old > magoroku_racing
comparison Makefile2 @ 106:0c4b7d74e292
add Magoroku.cc & .h (Dandy.cc & .h)
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 08 Jun 2011 13:16:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
105:ef64f1182dc8 | 106:0c4b7d74e292 |
---|---|
1 # Makefile to build the SDL tests | |
2 # include ./Makefile.def | |
3 | |
4 | |
5 TARGET = main | |
6 CC = g++ | |
7 SRCS = main.cc game.cc car.cc col.cc quotanion.cc controler.cc field.cc camera.cc gSprite.cc schedule.cc mytype.cc gFont.cc carNode.cc light.cc title_scene.cc game_time.cc ps2util.cc sjoy.cc name_dictionary.cc Magoroku.cc | |
8 #linda/lindaapi.cc linda.c | |
9 OBJS = ${SRCS:.cc=.o} | |
10 VU1DIR = vu1code | |
11 | |
12 #MPGOBJ = mpg.elf | |
13 CERIUM = ../Cerium | |
14 | |
15 VPUSRCS = ${VU1DIR}/Makefile ${VU1DIR}/MPG.dsm ${VU1DIR}/basic.vsm ${VU1DIR}/vpu.cmd ${VU1DIR}/vumacros.h | |
16 VU1OBJ = ${VU1DIR}/mpg.elf | |
17 | |
18 #Dandy の Makefile をもとに追加 | |
19 INCLUDES = \ | |
20 -I. -I.. -I${CERIUM}/include/TaskManager -I$(CERIUM)/Renderer/Engine -I$(CERIUM)/include/Cerium | |
21 | |
22 | |
23 #DEFINES = -DDEBUG -DLINDA | |
24 DEBUGFLAGS = -Wall -g | |
25 #LIBPS2ARC = /usr/local/lib/libps2a.a | |
26 | |
27 CFLAGS = ${INCLUDES} ${DEFINES} ${DEBUGFLAGS} | |
28 | |
29 #LIBS = `xml-config --libs` -lps2util -lpng -lps2a | |
30 #Dandy の Makefile をもとに追加 | |
31 LIBS = -L${CERIUM}/TaskManager -L$(CERIUM)/Renderer/Engine | |
32 LIBS += `sdl-config --libs`, -framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` | |
33 LIBS += -lCerium -lFifoManager | |
34 | |
35 TEST = test_vector | |
36 | |
37 all : ${TARGET} ${TEST} | |
38 | |
39 ${VU1OBJ}: ${VPUSRCS} | |
40 cd ${VU1DIR}; make | |
41 cp ${VU1OBJ} . | |
42 | |
43 #${TARGET} : ${OBJS} ${VU1OBJ} | |
44 # ${CC} -o ${TARGET} ${OBJS} ${LIBS} | |
45 | |
46 #${AR} x ${LIBPS2ARC} ${MPGOBJ} | |
47 | |
48 #${TARGET} : ${OBJS} | |
49 # ${CC} -po ${TARGET} ${OBJS} ${LIBS} | |
50 ${TARGET} : ${OBJS} | |
51 ${CC} -o ${TARGET} ${OBJS} ${LIBS} | |
52 | |
53 ${TEST} : test_vector.cc ps2util.cc | |
54 ${CC} -o ${TEST} $^ | |
55 | |
56 tag: | |
57 etags *.[ch] | |
58 | |
59 clean : | |
60 rm -f ${OBJS} | |
61 rm -f ${TARGET} | |
62 rm -f ${MPGOBJ} | |
63 rm -f ${VU1OBJ} | |
64 rm -f *~ | |
65 cd ${VU1DIR}; make clean | |
66 depend: | |
67 makedepend -- ${CFLAGS} -- ${SRCS} ${MAINSRC} | |
68 # DO NOT DELETE | |
69 | |
70 main.o: | |
71 game.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h | |
72 car.o: | |
73 col.o: | |
74 quotanion.o: | |
75 field.o: | |
76 camera.o: | |
77 gaSprite.o: | |
78 schedule.o: | |
79 demo.o: | |
80 mytype.o: | |
81 gFont.o: | |
82 carNode.o: | |
83 #linda.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h | |
84 light.o: | |
85 title_scene.o: | |
86 game_time.o: | |
87 sjoy.o: | |
88 name_dictionary.o: | |
89 Magoroku.o: |