]> AND Public Git Repository - simgrid.git/blobdiff - tools/gras/unix_stub_generator.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Erm. We moved from CVS to SVN a looooong while ago
[simgrid.git] / tools / gras / unix_stub_generator.c
index 1c322f74542e12cd72f2aaa9e90a8defa86f556a..34f9944775fcbc3a1653c495278f419910937861 100644 (file)
@@ -151,7 +151,7 @@ void generate_sim(char *project) {
           "  /*  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");
@@ -310,10 +310,10 @@ 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" 
-         "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"
+         "CFLAGS ?= -O3 -w -g -Wall\n"
          "LIBS_SIM = -lm  -L$(GRAS_ROOT)/lib/ -lsimgrid\n"
          "LIBS_RL = -lm  -L$(GRAS_ROOT)/lib/ -lgras\n"
          "LIBS = \n"