comparison 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
comparison
equal deleted inserted replaced
92:01bec7dbe42c 93:3731dd016e1b
1 TARGET = main
2 CC = gcc
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
5 OBJS = ${SRCS:.c=.o}
6 VU1DIR = vu1code
7
8 #MPGOBJ = mpg.elf
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 = \
14 #-I/usr/local/include/libps2a \
15 #-I/usr/local/include/ps2util \
16 #-I./Linda
17
18 #DEFINES = -DDEBUG -DLINDA
19 DEBUGFLAGS = -Wall -g
20 #LIBPS2ARC = /usr/local/lib/libps2a.a
21
22 CFLAGS = ${INCLUDES} ${DEFINES} ${DEBUGFLAGS}
23
24 #LIBS = `xml-config --libs` -lps2util -lpng -lps2a
25
26 all : ${TARGET}
27
28 ${VU1OBJ}: ${VPUSRCS}
29 cd ${VU1DIR}; make
30 cp ${VU1OBJ} .
31
32 #${TARGET} : ${OBJS} ${VU1OBJ}
33 # ${CC} -o ${TARGET} ${OBJS} ${LIBS}
34
35 #${AR} x ${LIBPS2ARC} ${MPGOBJ}
36
37 #${TARGET} : ${OBJS}
38 # ${CC} -po ${TARGET} ${OBJS} ${LIBS}
39 ${TARGET} : ${OBJS}
40 ${CC} -o ${TARGET} ${OBJS}
41
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
57 main.o:
58 game.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h
59 car.o:
60 col.o:
61 quotanion.o:
62 field.o:
63 camera.o:
64 gaSprite.o:
65 schedule.o:
66 demo.o:
67 mytype.o:
68 gFont.o:
69 carNode.o:
70 linda.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h
71 light.o:
72 title_scene.o:
73 game_time.o: