diff Makefile.ps3 @ 19:00c3272a801f

fix.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Sun, 26 Dec 2010 18:57:08 +0900
parents c330ded6d728
children cfd42ee2ad28
line wrap: on
line diff
--- a/Makefile.ps3	Fri Dec 17 22:18:11 2010 +0900
+++ b/Makefile.ps3	Sun Dec 26 18:57:08 2010 +0900
@@ -3,9 +3,9 @@
 
 ABI = -m32
 
-CFLAGS  += -g $(ABI) -O2 -Wall `/usr/bin/sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
-LIBS	+=  `/usr/bin/sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs`
-LIBS +=  -lCerium -lCellManager  -lspe2 -lpthread
+CFLAGS  += `/usr/bin/sdl-config --cflags` `xml2-config --cflags`
+LIBS	+= `sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs`
+LIBS +=  -lCerium -lCellManager -lspe2
 
 TASK_DIR  = spe
 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
@@ -21,35 +21,35 @@
 speobject:
 	cd spe; $(MAKE)
 
-link:
+spe-main:
 	ln -s $(CERIUM)/Renderer/Engine/spe-main .
 
 run: $(TARGET)
 	sudo ./$(TARGET) -width 576 -height 384 -bpp 32
-run-hd: $(TARGET)
+run-hd:
 	sudo /usr/sbin/ps3-video-mode -v 133
-	sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32
+	sudo ./t_dandy -video fb -width 1920 -height 1080 -bpp 32
 
-test: $(TARGET)
+test:
 	./demo  -test
 
 demo: $(OBJS) sgoex.o main.o collision.o
-	$(CC) $(ABI) -o $@ main.o sgoex.o collision.o $(OBJS) $(LIBS)
+	$(CC) $(ABI) -o $@ $? $(LIBS)
 
 dandy: $(OBJS) Dandy.o collision.o
-	$(CC) $(ABI) -o $@ $(OBJS) Dandy.o collision.o $(LIBS)
+	$(CC) $(ABI) -o $@ $? $(LIBS)
 
 t_dandy: $(OBJS) $(TASK_OBJS) TaskDandy.o collision_task.o
-	 $(CC) $(ABI) -o $@ $(OBJS) $(TASK_OBJS) TaskDandy.o collision_task.o $(LIBS)
+	 $(CC) $(ABI) -o $@ $? $(LIBS)
 
 clean:
 	rm -f $(TARGET) $(OBJS) sgoex.o main.o Dandy.o $(TASK_DIR)/*.o
 	cd spe;$(MAKE) clean
 
 .c.o:
-	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
+	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
 
 .cc.o:
-	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
+	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
 
-debug.o:debug.h
+debug.o:debug.h
\ No newline at end of file