view Makefile @ 138:993d5f7e5f30

collision malloc error after face reading
author e085768
date Fri, 22 Jul 2011 23:51:14 +0900
parents 4f50f5a3b363
children 8ac08eda80ac
line wrap: on
line source

# Makefile to build the SDL tests
include ./Makefile.def

srcdir  = .
ABI = -m$(ABIBIT)

SRCS = 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 sound.cc Ss.cc getStrFromFile.cc
TEST_SRCS = col.cc ps2util.cc gSprite.cc

#CFLAGS  += -DINVISIBLE_MODE -g $(ABI) -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
CFLAGS  += -DINVISIBLE_MODE -g -O0 $(ABI) -Wall `sdl-config --cflags` `xml2-config --cflags` `freetype-config --cflags` $(INCLUDE)
LIBS	+=  `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` `freetype-config --libs`
LIBS += -lCerium -lFifoManager

TARGET = magoroku  #dandy test1

#TEST = test_vector

OBJS  = ${SRCS:.cc=.o}
TEST_OBJS = ${TEST_SRCS:.cc=.o}

all: $(TARGET) #${TEST}

magoroku: $(OBJS) Magoroku.o 
	$(CC) $(ABI) -o $@ $(OBJS) Magoroku.o $(LIBS)

test_collision: $(TEST_OBJS) test_collision.o 
	$(CC) $(ABI) -o $@ $(TEST_OBJS) test_collision.o $(LIBS)

#${TEST}: ps2util.o test_vector.o
#	${CC} $(ABI) -o test_vector.o ps2util.o $(LIBS)
#	$(CC) -o test_vector.o 
#	${CC} -o ${TEST} $^


clean:
	rm -f $(TARGET) $(OBJS) main.o sgoex.o Magoroku.o Test.o

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $<

.cc.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $<

debug.o:debug.h