view 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
line wrap: on
line source

TARGET = main
CC = gcc
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
#linda/lindaapi.c linda.c
OBJS = ${SRCS:.c=.o}
VU1DIR = vu1code

#MPGOBJ =  mpg.elf

VPUSRCS = ${VU1DIR}/Makefile ${VU1DIR}/MPG.dsm ${VU1DIR}/basic.vsm ${VU1DIR}/vpu.cmd ${VU1DIR}/vumacros.h
VU1OBJ = ${VU1DIR}/mpg.elf

INCLUDES = \
#-I/usr/local/include/libps2a \
#-I/usr/local/include/ps2util \
#-I./Linda

#DEFINES = -DDEBUG -DLINDA
DEBUGFLAGS = -Wall -g
#LIBPS2ARC = /usr/local/lib/libps2a.a

CFLAGS = ${INCLUDES} ${DEFINES} ${DEBUGFLAGS}

#LIBS = `xml-config --libs` -lps2util -lpng -lps2a

all : ${TARGET}

${VU1OBJ}: ${VPUSRCS}
	cd ${VU1DIR}; make
	cp ${VU1OBJ} .

#${TARGET} : ${OBJS} ${VU1OBJ}
#	${CC} -o ${TARGET} ${OBJS} ${LIBS}

#${AR} x ${LIBPS2ARC} ${MPGOBJ}

#${TARGET} : ${OBJS}
#	${CC} -po ${TARGET} ${OBJS} ${LIBS}
${TARGET} : ${OBJS}
	${CC} -o ${TARGET} ${OBJS}


tag:
	etags *.[ch]

clean :
	rm -f ${OBJS}
	rm -f ${TARGET}
	rm -f ${MPGOBJ}
	rm -f ${VU1OBJ}
	rm -f *~
	cd ${VU1DIR}; make clean
depend:
	makedepend -- ${CFLAGS} -- ${SRCS} ${MAINSRC}
# DO NOT DELETE

main.o: 
game.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h
car.o:
col.o: 
quotanion.o:
field.o: 
camera.o:
gaSprite.o:
schedule.o:
demo.o: 
mytype.o:
gFont.o: 
carNode.o:
#linda.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h
light.o:
title_scene.o:
game_time.o: