Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/Makefile.ps3 @ 109:5c194c71eca8
Cerium cvs version
author | gongo@gendarme.local |
---|---|
date | Wed, 12 Nov 2008 17:39:33 +0900 |
parents | |
children | e2b1c795525e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/Test/test_render/Makefile.ps3 Wed Nov 12 17:39:33 2008 +0900 @@ -0,0 +1,54 @@ +include ./Makefile.def + +SRCS_TMP = $(wildcard *.cpp) +SRCS_EXCLUDE = # ½ü³° +SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) +OBJS = $(SRCS:.cpp=.o) + +TASK_DIR = task +TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp) +TASK_SRCS_EXCLUDE = span_pack_draw.cpp +TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) +TASK_OBJS = $(TASK_SRCS:.cpp=.o) + +CC = g++ +CFLAGS = -O9 -g -Wall# -DDEBUG +INCLUDE = -I$(CERIUM)/include/TaskManager -I. +LIBS = -L$(CERIUM)/TaskManager -lCellManager -lspe2 -lpthread + +EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags` +EXTRA_LIBS = `sdl-config --libs` -lSDL_image -lGL \ + `xml2-config --libs` + +.SUFFIXES: .cpp .o + +.cpp.o: + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ + +all: $(TARGET) speobject + +$(TARGET): $(OBJS) $(TASK_OBJS) + $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) $(EXTRA_LIBS) + +speobject: + cd spe; $(MAKE) + +link: + $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) $(EXTRA_LIBS) + +run: $(TARGET) + sudo ./$(TARGET) -width 576 -height 384 -bpp 32 + +debug: $(TARGET) + sudo ppu-gdb ./$(TARGET) + +depend: + makedepend -- $(CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -- \ + $(SRCS) $(TASK_SRCS) + +clean: + rm -f $(TARGET) $(OBJS) $(TASK_OBJS) + rm -f *~ \#* + cd task; rm -f *~ \#* + cd spe; $(MAKE) clean +