view Renderer/Test/Makefile @ 543:0c53fa91602f draft

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 17:46:20 +0900
parents 109a33b72b10
children dc59679d9a36
line wrap: on
line source

include ./Makefile.def


TASK_DIR  = task
TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
TASK_SRCS_EXCLUDE = 
TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
TASK_OBJS = $(TASK_SRCS:.cc=.o)

LIBS += -lFifoManager -lCerium

CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
LIBS   += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL

.SUFFIXES: .cc .o

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

all: ball_bound

ball_bound : ball_bound.o ball_xml.o
	$(CC) -o $@ $< $(LIBS)

ball_bound.cc : ball_xml.h

# SGList.o: create_sg_list
# 	$(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@

# generate ball_xml.h, ball_xml.cc
ball_xml.cc: xml_file/Ball.xml
	perl $(TOOL)/create_sglist.pl -o $@ $< 


run: $(TARGET)
	sudo ./$(TARGET) -width 576 -height 384 -bpp 32

debug: $(TARGET)
	sudo ppu-gdb ./$(TARGET) 

depend:
	$(RM) depend.inc
	$(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc

clean:
	rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
	rm -f *~ \#*
	rm -f SGList.h SGList.cc

-include depend.inc