a special script used in gathering stage of building charm.
authorDavid Kunzman <kunzman2@illinois.edu>
Fri, 17 Mar 2006 23:21:06 +0000 (23:21 +0000)
committerDavid Kunzman <kunzman2@illinois.edu>
Fri, 17 Mar 2006 23:21:06 +0000 (23:21 +0000)
src/arch/net-linux-cell/conv-mach.sh
src/arch/net-linux-cell/special.sh [new file with mode: 0755]

index a779ec13826e7ba93133139b1e4e289e8790dd40..de2be21d929efbe2a874780bb04f10aef9f120af 100644 (file)
@@ -1,19 +1,22 @@
+CELL_SDK_DIR="$HOME/cellsim"
 CMK_CPP_CHARM='/usr/lib/cpp'
 CMK_CPP_C='ppu32-gcc -E'
 CMK_CXXPP='ppu32-g++ -E'
-CMK_CC='ppu32-gcc -fPIC -w '
-CMK_CXX='ppu32-g++ -fPIC -w '
-CMK_LD="$CMK_CC"
-CMK_LDXX="$CMK_CXX"
+CMK_CC="ppu32-gcc -fPIC -w -I$CELL_SDK_DIR/sysroot/usr/include"
+CMK_CXX="ppu32-g++ -fPIC -w  -I$CELL_SDK_DIR/sysroot/usr/include"
+CMK_LD="$CMK_CC -L$HOME/cellsim/systemsim-cell-release/run/cell/linux/spert -L$CELL_SDK_DIR/sysroot/usr/lib "
+CMK_LDXX="$CMK_CXX -L$HOME/cellsim/systemsim-cell-release/run/cell/linux/spert -L$CELL_SDK_DIR/sysroot/usr/lib "
+
+CMK_SEQ_CC=$CMK_CC
+CMK_SEQ_CXX=$CMK_CXX
+CMK_SEQ_LD=$CMK_LD
+CMK_SEQ_LDXX=$CMK_LDXX
 
 CMK_RANLIB='ppu-ranlib'
 CMK_AR='ppu-ar -r'
-CMK_LIBS='-lckqt'
+CMK_LIBS='-lckqt -lcellppu -lspe'
 CMK_LD_SHARED='-shared'
 
-CMK_SEQ_CC='ppu32-gcc -fPIC '
-CMK_SEQ_CXX='ppu32-g++ -fPIC '
-
 CMK_NATIVE_CC='gcc'
 CMK_NATIVE_LD='gcc'
 CMK_NATIVE_CXX='g++'
diff --git a/src/arch/net-linux-cell/special.sh b/src/arch/net-linux-cell/special.sh
new file mode 100755 (executable)
index 0000000..24c6d5d
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+./gathertree ../../src/arch/cell .
+
+# make links
+test ! -f "../include/cell-api.h" && ./system_ln "../tmp/cell-api.h" ../include
+for f in cell_lib/*.h
+do
+  test ! -f "../include/$f" && ./system_ln "../tmp/$f" ../include
+done
+
+#make library
+cd cell_lib && make install