3 # Copyright (c) 2007-2014. The SimGrid Team.
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of the license (GNU LGPL) which comes with this package.
9 SIMGRID_VERSION="@SIMGRID_VERSION_STRING@"
13 INCLUDEARGS="@includeflag@"
14 CMAKE_LINKARGS="-L@libdir@"
20 if [ "@WIN32@" != "1" ]; then
21 list_add CFLAGS "-Dmain=smpi_simulated_main_"
22 list_add LINKARGS "-lsimgrid"
24 list_add CFLAGS "-include" "@includedir@/smpi/smpi_main.h"
25 list_add LINKARGS "@libdir@\libsimgrid.dll"
29 while [ $# -gt 0 ]; do
39 SRCFILE="$(readlink -f ${ARG} 2>/dev/null)"
40 if [ -z "$SRCFILE" ] ; then
43 list_add CMDARGS "${SRCFILE}"
45 '-version' | '--version' | '-v')
46 # -e is not recognised by MS-DOS...
47 echo -e $SIMGRID_VERSION
51 list_add CMDARGS "${ARG}"
56 list_set CMDLINE "${CC}"
57 list_add_not_empty CMDLINE "${CFLAGS}"
58 list_add_not_empty CMDLINE ${INCLUDEARGS}
59 list_add_not_empty CMDLINE ${CMAKE_LINKARGS}
60 list_add_not_empty CMDLINE "${CMDARGS}"
61 list_add_not_empty CMDLINE "${LINKARGS}"
63 eval $(list_get CMDLINE)