view Renderer/Engine/Makefile.cell @ 984:df5185513c2d

minor fix
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 01 Oct 2010 01:25:45 +0900
parents a193a851b5e3
children
line wrap: on
line source

include ./Makefile.def

SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc) $(wildcard ps3fb/*.cc)
SRCS_EXCLUDE =   # ½ü³°
SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
OBJS = $(SRCS:.cc=.o)

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

LIBS += -lCellManager -lspe2 -lpthread

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

.SUFFIXES: .cc .o

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

default: all

all: $(TARGET) speobject

$(TARGET): $(OBJS) $(TASK_OBJS)
	$(AR) crus $@ $(OBJS) $(TASK_OBJS) 

speobject:
	cd spe; $(MAKE)

run: $(TARGET)
	sudo ./$(TARGET) -width 576 -height 384 -bpp 32
run-hd: $(TARGET)
	sudo /usr/sbin/ps3-video-mode -v 133
	sudo ./$(TARGET) -video fb -width 1920 -height 1080 -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
	cd task; rm -f *~ \#*
	cd spe; $(MAKE) clean