view TaskManager/Test/test_render/Makefile.ps3 @ 199:eb20274baa7c

add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Mon, 26 Jan 2009 14:02:45 +0900
parents e2b1c795525e
children d61fded0729e
line wrap: on
line source

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)

LIBS += -lCellManager -lspe2 -lpthread

CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
LIBS   += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs`

.SUFFIXES: .cpp .o

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

all: $(TARGET) speobject

$(TARGET): $(OBJS) $(TASK_OBJS)
	$(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)

speobject:
	cd spe; $(MAKE)

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

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

depend:
	makedepend -- $(CFLAGS)	$(LIBS) $(INCLUDE) -- $(SRCS) $(TASK_SRCS)

clean:
	rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
	rm -f *~ \#*
	cd task; rm -f *~ \#*
	cd spe; $(MAKE) clean