diff Makefile.cell @ 0:bb4b306c1248

first commit
author tkaito
date Mon, 31 May 2010 18:22:53 +0900
parents
children 57af5c610b34
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.cell	Mon May 31 18:22:53 2010 +0900
@@ -0,0 +1,118 @@
+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 = spe-main ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum dynamic viewer SgRootChange property_test create_task property_universe chain_old property_chain
+
+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 .
+
+
+BALL_BOUND_OBJ = ball_bound.o
+ball_bound : $(BALL_BOUND_OBJ) 
+	$(CC) -o $@ $?   $(LIBS)
+
+BOSS_OBJ = boss1_action.o
+boss1_action : $(BOSS_OBJ) 
+	$(CC) -o $@ $?   $(LIBS)
+
+DIRECTION_OBJ = direction.o
+direction : $(DIRECTION_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o ball_action.o
+gaplant : $(GAPLAN_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+IESHOOT_OBJ = ieshoot.o
+ieshoot : $(IESHOOT_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+NODE_OBJ = node.o
+node : $(NODE_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+PANEL_OBJ = panel.o
+panel : $(PANEL_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+UNIV_OBJ = universe.o
+universe : $(UNIV_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+UNTITLED_OBJ = untitled.o
+untitled : $(UNTITLED_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+VACUUM_OBJ = vacuum.o cube.o game_over.o title.o
+vacuum : $(VACUUM_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+DYNAMIC_OBJ = dynamic_create.o 
+dynamic : $(DYNAMIC_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+VIEWER_OBJ = viewer.o 
+viewer : $(VIEWER_OBJ) 
+	$(CC) -o $@ $?    $(LIBS)
+
+SG_CHANGE_OBJ = SgRootChange.o
+SgRootChange : $(SG_CHANGE_OBJ) 
+	$(CC) -o $@ $?   $(LIBS)
+
+PROPERTY_TEST_OBJ = property_test.o
+property_test : $(PROPERTY_TEST_OBJ)
+	$(CC) -o $@ $?   $(LIBS)
+
+CREATE_TASK_OBJ = create_task.o
+create_task : $(CREATE_TASK_OBJ)
+	$(CC) -o $@ $?   $(LIBS)
+
+P_UNIVERSE_OBJ = property_universe.o
+property_universe : $(P_UNIVERSE_OBJ)
+	$(CC) -o $@ $?   $(LIBS)
+
+CHAIN_OLD = chain_old.o
+chain_old : $(CHAIN_OLD)
+	$(CC) -o $@ $? $(LIBS)
+
+P_CHAIN_OBJ = property_chain.o
+property_chain : $(P_CHAIN_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
+
+