view Makefile.cell @ 5:57af5c610b34

iroiro add
author tkaito
date Mon, 07 Jun 2010 02:16:02 +0900
parents bb4b306c1248
children
line wrap: on
line source

include ./Makefile.def

LIBS +=  -lCerium -lCellManager  -lspe2 -lpthread

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


.SUFFIXES: .cc .o .xml

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

ALL = viewer dandy

all: $(ALL)

speobject:
	cd spe; $(MAKE)

run: $(TARGET)
	sudo ./$(TARGET) -width 576 -height 384 -bpp 32
run-hd: $(TARGET)
	sudo ps3-video-mode -v 133
	sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32


spe-main:
	ln -s ../Engine/spe-main .

VIEWER_OBJ = viewer.o
viewer : $(VIEWER_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

DANDY_OBJ = dandy.o title.o game_over.o mydandy.o game_scene01.o greenclab.o
dandy : $(DANDY_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

	
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) *.o
	rm -f *~ \#* $(ALL)
	rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)

-include depend.inc