changeset 115:44e3bf914155

fix Makefile
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 13 Nov 2008 10:46:36 +0900
parents 9d13524c7136
children 60a4449d6575
files TaskManager/Makefile.def TaskManager/kernel/ppe/TaskManagerImpl.cc example/HelloWorld/Makefile.def example/HelloWorld/Makefile.ps3 example/HelloWorld/README example/README example/basic/Makefile.def example/basic/Makefile.linux example/basic/Makefile.macosx example/basic/Makefile.ps3 example/dependency_task/Makefile.def example/dependency_task/Makefile.linux example/dependency_task/Makefile.macosx example/dependency_task/Makefile.ps3 example/post_function/Makefile.def example/post_function/Makefile.linux example/post_function/Makefile.macosx example/post_function/Makefile.ps3 example/share_task/Makefile.def example/share_task/Makefile.linux example/share_task/Makefile.macosx example/share_task/Makefile.ps3
diffstat 22 files changed, 75 insertions(+), 77 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Makefile.def	Thu Nov 13 10:24:16 2008 +0900
+++ b/TaskManager/Makefile.def	Thu Nov 13 10:46:36 2008 +0900
@@ -25,7 +25,7 @@
 IMPL_CELL_OBJS = $(IMPL_CELL_SRCS:.cc=.o)
 
 CC     = g++   
-CFLAGS = -O9 -Wall `sdl-config --cflags` -ffunction-sections -g # -D_PPE_DEBUG #-DDEBUG
+CFLAGS = -O9 -Wall `sdl-config --cflags` -g
 LIBS   = 
 
 INCLUDE = -I../include/TaskManager
\ No newline at end of file
--- a/TaskManager/kernel/ppe/TaskManagerImpl.cc	Thu Nov 13 10:24:16 2008 +0900
+++ b/TaskManager/kernel/ppe/TaskManagerImpl.cc	Thu Nov 13 10:46:36 2008 +0900
@@ -4,7 +4,7 @@
 #include "error.h"
 #include "../sys_task/SysTask.h"
 
-static HTaskPtr systask_start;
+//static HTaskPtr systask_start;
 static HTaskPtr systask_finish;
 
 void
--- a/example/HelloWorld/Makefile.def	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/HelloWorld/Makefile.def	Thu Nov 13 10:46:36 2008 +0900
@@ -2,12 +2,10 @@
 
 # include/library path
 # ex: macosx
-#CERIUM = /Users/gongo/Source/Concurrency/Game_project/Cerium
-CERIUM = /Users/gongo/Source/Cerium
+#CERIUM = /Users/gongo/Source/Cerium
 
 # ex: linux/ps3
-#CERIUM = /home/gongo/Game_project/Cerium
-
+CERIUM = /home/gongo/Cerium
 
 CC      = g++
 CFLAGS  = -g -Wall -O9
--- a/example/HelloWorld/Makefile.ps3	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/HelloWorld/Makefile.ps3	Thu Nov 13 10:46:36 2008 +0900
@@ -11,7 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-LIBS = -lCellManager -lspe2 -lpthread -Wl,--gc-sections 
+LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections 
 
 .SUFFIXES: .cc .o
 
--- a/example/HelloWorld/README	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/HelloWorld/README	Thu Nov 13 10:46:36 2008 +0900
@@ -44,4 +44,4 @@
 
 上の例では、Hello タスク 10 個を、
 3 つの CPU に振り分けて実行しているので
-表示が順になっていないことがわかります。
\ No newline at end of file
+表示が順になっていない -> 並列に実行されていることがわかります。
\ No newline at end of file
--- a/example/README	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/README	Thu Nov 13 10:46:36 2008 +0900
@@ -16,6 +16,31 @@
    菴贋
 -----------------
 
+2008/11/13
+
+Makefile.macosx 
+`sdl-config --libs` 菴遵障
+箴蕁筝 SDL 篏帥吾
+ゃ眼 main() 臀с
+
+http://d.hatena.ne.jp/hiratara/20080719/1216481600
+
+筝荀違障
+SDL с若吟 main  SDL_main 臀
+libSDL 筝 main() 莎桁潟篏帥c障
+сTaskManager/kernel/main.cc с #include <SDL.h> 
+c障с若九眼с sdl-config --libs 
+main() c潟若冴с
+MacOSX 馹сLinux  PS3 筝с馹
+Makefile.macosx 荐菴違障
+
+сMacOSX 筝т蕁翫筝 SDL ゃ潟
+莎桁膤祉篏障∴篁ュ障с
+
+<с篁с
+
+
+
 2008/11/01
 
 main ∽違ゃ障
--- a/example/basic/Makefile.def	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/basic/Makefile.def	Thu Nov 13 10:46:36 2008 +0900
@@ -2,7 +2,13 @@
 
 # include/library path
 # ex: macosx
-#CERIUM = /Users/gongo/Source/Concurrency/Game_project/Cerium
+#CERIUM = /Users/gongo/Source/Cerium
 
 # ex: linux/ps3
-CERIUM = /home/gongo/Game_project/Cerium
\ No newline at end of file
+CERIUM = /home/gongo/Cerium
+
+CC      = g++
+CFLAGS  = -g -Wall -O9
+
+INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
+LIBS = -L${CERIUM}/TaskManager
--- a/example/basic/Makefile.linux	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/basic/Makefile.linux	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager
 
 .SUFFIXES: .cc .o
 
--- a/example/basic/Makefile.macosx	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/basic/Makefile.macosx	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager `sdl-config --libs`
 
 .SUFFIXES: .cc .o
 
--- a/example/basic/Makefile.ps3	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/basic/Makefile.ps3	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lCellManager -lspe2 -lpthread
+LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections 
 
 .SUFFIXES: .cc .o
 
--- a/example/dependency_task/Makefile.def	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/dependency_task/Makefile.def	Thu Nov 13 10:46:36 2008 +0900
@@ -2,7 +2,13 @@
 
 # include/library path
 # ex: macosx
-#CERIUM = /Users/gongo/Source/Concurrency/Game_project/Cerium
+#CERIUM = /Users/gongo/Source/Cerium
 
 # ex: linux/ps3
-CERIUM = /home/gongo/Game_project/Cerium
\ No newline at end of file
+CERIUM = /home/gongo/Cerium
+
+CC      = g++
+CFLAGS  = -g -Wall -O9
+
+INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
+LIBS = -L${CERIUM}/TaskManager
--- a/example/dependency_task/Makefile.linux	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/dependency_task/Makefile.linux	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager
 
 .SUFFIXES: .cc .o
 
--- a/example/dependency_task/Makefile.macosx	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/dependency_task/Makefile.macosx	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager `sdl-config --libs`
 
 .SUFFIXES: .cc .o
 
--- a/example/dependency_task/Makefile.ps3	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/dependency_task/Makefile.ps3	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lCellManager -lspe2 -lpthread
+LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections 
 
 .SUFFIXES: .cc .o
 
--- a/example/post_function/Makefile.def	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/post_function/Makefile.def	Thu Nov 13 10:46:36 2008 +0900
@@ -2,7 +2,13 @@
 
 # include/library path
 # ex: macosx
-#CERIUM = /Users/gongo/Source/Concurrency/Game_project/Cerium
+#CERIUM = /Users/gongo/Source/Cerium
 
 # ex: linux/ps3
-CERIUM = /home/gongo/Game_project/Cerium
\ No newline at end of file
+CERIUM = /home/gongo/Cerium
+
+CC      = g++
+CFLAGS  = -g -Wall -O9
+
+INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
+LIBS = -L${CERIUM}/TaskManager
--- a/example/post_function/Makefile.linux	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/post_function/Makefile.linux	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager
 
 .SUFFIXES: .cc .o
 
--- a/example/post_function/Makefile.macosx	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/post_function/Makefile.macosx	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager `sdl-config --libs`
 
 .SUFFIXES: .cc .o
 
--- a/example/post_function/Makefile.ps3	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/post_function/Makefile.ps3	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lCellManager -lspe2 -lpthread
+LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections 
 
 .SUFFIXES: .cc .o
 
--- a/example/share_task/Makefile.def	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/share_task/Makefile.def	Thu Nov 13 10:46:36 2008 +0900
@@ -2,8 +2,13 @@
 
 # include/library path
 # ex: macosx
-#CERIUM = /Users/e065737/bin/Game_project/Cerium
-#CERIUM = /Users/gongo/Source/Concurrency/Game_project/Cerium
+#CERIUM = /Users/gongo/Source/Cerium
 
 # ex: linux/ps3
-CERIUM = /home/gongo/Game_project/Cerium
\ No newline at end of file
+CERIUM = /home/gongo/Cerium
+
+CC      = g++
+CFLAGS  = -g -Wall -O9
+
+INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
+LIBS = -L${CERIUM}/TaskManager
--- a/example/share_task/Makefile.linux	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/share_task/Makefile.linux	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager
 
 .SUFFIXES: .cc .o
 
--- a/example/share_task/Makefile.macosx	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/share_task/Makefile.macosx	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lFifoManager
+LIBS += -lFifoManager `sdl-config --libs`
 
 .SUFFIXES: .cc .o
 
--- a/example/share_task/Makefile.ps3	Thu Nov 13 10:24:16 2008 +0900
+++ b/example/share_task/Makefile.ps3	Thu Nov 13 10:46:36 2008 +0900
@@ -11,11 +11,7 @@
 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
 TASK_OBJS = $(TASK_SRCS:.cc=.o)
 
-CC      = g++
-CFLAGS  = -g -Wall# -O9 #-DDEBUG
-
-INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
-LIBS = -L${CERIUM}/TaskManager -lCellManager -lspe2 -lpthread
+LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections 
 
 .SUFFIXES: .cc .o