Mercurial > hg > Game > Cerium
diff Renderer/Test/Makefile @ 542:109a33b72b10 draft
continue...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 15:48:40 +0900 |
parents | |
children | 0c53fa91602f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Test/Makefile Mon Oct 12 15:48:40 2009 +0900 @@ -0,0 +1,50 @@ +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 + $(CC) -o $@ $< $(LIBS) + +# SGList.o: create_sg_list +# $(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@ + +create_sg_list: + @if [ ! -f SGList.h ]; then \ + cd tools/;\ + ./create_sglist.pl ../xml_file/*.xml;\ + fi + + +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