@@ -25,12 +25,13 @@ ROOT_DIR=$(@PERL_EXECUTABLE@ -e "use Cwd 'abs_path'; print abs_path('$PARENT_DIR
2525PARALLEL_BUILDS=4
2626params_MODS_PATH=" ."
2727params_BUILD_TYPE=" @COMPILE_LIBRARY_TYPE@"
28+ params_NRN_PRCELLSTATE=" @CORENRN_NRN_PRCELLSTATE@"
2829
2930# prefix for common options : make sure to rename these if options are changed.
30- MAKE_OPTIONS=" MECHLIB_SUFFIX MOD2CPP_BINARY MOD2CPP_RUNTIME_FLAGS DESTDIR INCFLAGS LINKFLAGS MODS_PATH VERBOSE BUILD_TYPE"
31+ MAKE_OPTIONS=" MECHLIB_SUFFIX MOD2CPP_BINARY MOD2CPP_RUNTIME_FLAGS DESTDIR INCFLAGS LINKFLAGS MODS_PATH VERBOSE BUILD_TYPE NRN_PRCELLSTATE "
3132
3233# parse CLI args
33- while getopts " n:m:a:d:i:l:Vp:b:h" OPT; do
34+ while getopts " n:m:a:d:i:l:Vp:r: b:h" OPT; do
3435 case " $OPT " in
3536 n)
3637 # suffix for mechanism library
@@ -59,6 +60,9 @@ while getopts "n:m:a:d:i:l:Vp:b:h" OPT; do
5960 b)
6061 # make with verbose
6162 params_BUILD_TYPE=" $OPTARG " ;;
63+ r)
64+ # enable NRN_PRCELLSTATE mechanism
65+ params_NRN_PRCELLSTATE=" $OPTARG " ;;
6266 h)
6367 echo " $APP_NAME [options, ...] [mods_path]"
6468 echo " Options:"
@@ -68,6 +72,7 @@ while getopts "n:m:a:d:i:l:Vp:b:h" OPT; do
6872 echo " -i <incl_flags> Definitions passed to the compiler, typically '-I dir..'"
6973 echo " -l <link_flags> Definitions passed to the linker, typically '-Lx -lylib..'"
7074 echo " -d <dest_dir> Install to dest_dir. Default: Off."
75+ echo " -r <0|1> Enable NRN_PRCELLSTATE mechanism. Default: @CORENRN_NRN_PRCELLSTATE@."
7176 echo " -V Verbose: show commands executed by make"
7277 echo " -p <n_procs> Number of parallel builds (Default: $PARALLEL_BUILDS )"
7378 echo " -b <STATIC|SHARED> libcorenrnmech library type"
0 commit comments