 $ then
 $     is_debug = 1
 $ endif
+$!
+$! Prepare build directory
+$! -----------------------
+$!
+$! When building on a search list, need to do a create to make sure that
+$! the output directory exists, since the clean procedure tries to delete
+$! it.
+$!
+$ create/dir 'objdir'/prot=o:rwed
 $!
 $! Generate platform-specific config file
 $! --------------------------------------

$! Command-line options:
$!
$!    32        Compile with 32-bit pointers.
$!
$!    CCQUAL=x  Add "x" to the C compiler qualifiers.
$!    NOIEEE    Do not use IEEE floating point.
$!    DEBUG     Build in debug mode.
$!===========================================================================
$!
$!

$ plibsys_src = plibsys_src + " ptimeprofiler-posix.c ptimeprofiler.c ptree-avl.c ptree-bst.c"
$ plibsys_src = plibsys_src + " ptree-rb.c ptree.c puthread-posix.c puthread.c"
$!
$! Inform about building
$! ---------------------
$!
$ if build_64 .eqs. "1"
$ then
$     'vo_c' "Building for ''arch_name' (64-bit)"
$ else
$     'vo_c' "Building for ''arch_name' (32-bit)"
$ endif
$!
$! Compile library modules
$! -----------------------
$!
