#
# Construct file for DNRD
#
# Simply run "cons" in the same directory as this file, and everything
# will be built under a directory called "build", and the final
# executable will be installed in a directory called "final".
#

Link 'build' => 'src';

$CONS = new cons(
    CC       => 'gcc',
    COPT     => '-O2 ',
    CDEF     => '-D_REENTRANT',
    CWARN    => '-Wall -Werror',
    CDBG     => '-ggdb',
    CFLAGS   => '%CWARN %COPT %CDEF %CDBG',
    LIBS     => '-lpthread',
    ENV      => { PATH => '/bin:/usr/bin' },
);

$FINAL = '#final';

Export qw(
    CONS
    FINAL
);

Default("final");

Build qw(
    build/Conscript
);
