A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Time independent output trace format ( TI ) to output traces that can then be...
[simgrid.git]
/
src
/
smpi
/
smpicc.in
diff --git
a/src/smpi/smpicc.in
b/src/smpi/smpicc.in
index
c5627b3
..
36ddd2b
100755
(executable)
--- a/
src/smpi/smpicc.in
+++ b/
src/smpi/smpicc.in
@@
-2,15
+2,15
@@
CC=@CMAKE_C_COMPILER@
CC=@CMAKE_C_COMPILER@
-INCLUDEARGS="
-I@includedir@ -I@includedir@/smpi -I@CMAKE_BINARY_DIR@/include
"
-CMAKE_LINKARGS="-L@
CMAKE_LINKARGS
@"
+INCLUDEARGS="
@includeflag@
"
+CMAKE_LINKARGS="-L@
libdir
@"
-if [
@WIN32@ != 1
]; then
-
LINKARGS="-lsimgrid -lsmpi -lm
"
-
CFLAGS="-O2 -Dmain=smpi_simulated_main
"
+if [
"@WIN32@" != "1"
]; then
+
CFLAGS="-Dmain=smpi_simulated_main_
"
+
LINKARGS="-lsimgrid
"
else
else
-
CFLAGS="-O2
-include @includedir@/smpi/smpi_main.h"
-
LINKARGS="@CMAKE_BINARY_DIR@\lib\libsimgrid.dll @CMAKE_BINARY_DIR@\lib\libsmpi
.dll"
+
CFLAGS="
-include @includedir@/smpi/smpi_main.h"
+
LINKARGS="@libdir@\libsimgrid
.dll"
fi
CMDLINE=""
fi
CMDLINE=""
@@
-19,6
+19,7
@@
while [ -n "$1" ]; do
shift
case "${ARG}" in
-c)
shift
case "${ARG}" in
-c)
+ CMAKE_LINKARGS=""
LINKARGS=""
CMDLINE="${CMDLINE} -c "
;;
LINKARGS=""
CMDLINE="${CMDLINE} -c "
;;