@@ -20,17 +20,20 @@ params_MODS_PATH="."
2020params_BUILD_TYPE=" @COMPILE_LIBRARY_TYPE@"
2121
2222# prefix for common options : make sure to rename these if options are changed.
23- MAKE_OPTIONS=" MECHLIB_SUFFIX NMODL_BINARY DEST_DIR INCFLAGS LINKFLAGS MODS_PATH VERBOSE BUILD_TYPE"
23+ MAKE_OPTIONS=" MECHLIB_SUFFIX NMODL_BINARY NMODL_RUNTIME_FLAGS DEST_DIR INCFLAGS LINKFLAGS MODS_PATH VERBOSE BUILD_TYPE"
2424
2525# parse CLI args
26- while getopts " n:m:v :d:i:l:p:b:hV " OPT; do
26+ while getopts " n:m:a :d:i:l:V: p:b:h " OPT; do
2727 case " $OPT " in
2828 n)
2929 # suffix for mechanism library
3030 params_MECHLIB_SUFFIX=" $OPTARG " ;;
3131 m)
3232 # nmodl or mod2c binary to use
3333 params_NMODL_BINARY=" $OPTARG " ;;
34+ a)
35+ # additional nmodl flags to be used
36+ params_NMODL_RUNTIME_FLAGS=" $OPTARG " ;;
3437 d)
3538 # destination install directory
3639 params_DEST_DIR=" $OPTARG " ;;
@@ -52,14 +55,15 @@ while getopts "n:m:v:d:i:l:p:b:hV" OPT; do
5255 h)
5356 echo " $APP_NAME [options, ...] [mods_path]"
5457 echo " Options:"
55- echo " -n <name> The model name, used as a suffix in the shared library"
56- echo " -m <mod2c_bin> NMODL code generation compiler path"
57- echo " -i <incl_flags> Definitions passed to the compiler, typically '-I dir..'"
58- echo " -l <link_flags> Definitions passed to the linker, typically '-Lx -lylib..'"
59- echo " -d <dest_dir> Install to dest_dir. Default: Off."
60- echo " -V Verbose: show commands executed by make"
61- echo " -p <n_procs> Number of parallel builds (Default: $PARALLEL_BUILDS )"
62- echo " -b <STATIC|SHARED> libcorenrnmech library type"
58+ echo " -n <name> The model name, used as a suffix in the shared library"
59+ echo " -m <nmodl_bin> NMODL/mod2c code generation compiler path"
60+ echo " -a <nmodl_runtime_flags> Runtime flags for NMODL/mod2c"
61+ echo " -i <incl_flags> Definitions passed to the compiler, typically '-I dir..'"
62+ echo " -l <link_flags> Definitions passed to the linker, typically '-Lx -lylib..'"
63+ echo " -d <dest_dir> Install to dest_dir. Default: Off."
64+ echo " -V Verbose: show commands executed by make"
65+ echo " -p <n_procs> Number of parallel builds (Default: $PARALLEL_BUILDS )"
66+ echo " -b <STATIC|SHARED> libcorenrnmech library type"
6367 exit 0;;
6468 ? )
6569 exit 1;;
0 commit comments