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
autogenerated files (sorry)
[simgrid.git]
/
tools
/
gras
/
unix_stub_generator.c
diff --git
a/tools/gras/unix_stub_generator.c
b/tools/gras/unix_stub_generator.c
index
1c322f7
..
22db986
100644
(file)
--- a/
tools/gras/unix_stub_generator.c
+++ b/
tools/gras/unix_stub_generator.c
@@
-151,7
+151,7
@@
void generate_sim(char *project) {
" /* Simulation setup */\n"
" gras_global_init(&argc,argv);\n"
" if (argc != 3) {\n"
" /* Simulation setup */\n"
" gras_global_init(&argc,argv);\n"
" if (argc != 3) {\n"
- " fprintf(stderr, \"Usage: %s platform.xml deployment.xml [--
gras-
log=...]\\n\",argv[0]);\n"
+ " fprintf(stderr, \"Usage: %s platform.xml deployment.xml [--log=...]\\n\",argv[0]);\n"
" exit(1);\n"
" }\n"
"\n");
" exit(1);\n"
" }\n"
"\n");
@@
-310,7
+310,7
@@
void generate_makefile_local(char *project, char *deployment) {
fprintf(OUT,
"# Set the GRAS_ROOT environment variable to the path under which you installed SimGrid\n"
"# Compilation will fail if you don't do so\n"
fprintf(OUT,
"# Set the GRAS_ROOT environment variable to the path under which you installed SimGrid\n"
"# Compilation will fail if you don't do so\n"
- "GRAS_ROOT?= $(shell
echo \"\\\"<<<< GRAS_ROOT undefined !!! >>>>\\\"\"
)\n\n"
+ "GRAS_ROOT?= $(shell
if [ -e /usr/local/lib/libgras.so ] ; then echo /usr/local ; else echo \"\\\"<<<< GRAS_ROOT undefined !!! >>>>\\\"\"; fi
)\n\n"
"# You can fiddle the following to make it fit your taste\n"
"INCLUDES = -I$(GRAS_ROOT)/include\n"
"CFLAGS ?= -O3 -w -g\n"
"# You can fiddle the following to make it fit your taste\n"
"INCLUDES = -I$(GRAS_ROOT)/include\n"
"CFLAGS ?= -O3 -w -g\n"