##---------------------------------------------------------------------------
##
## MODULE NAME:     Buildfile
##
## COPYRIGHT:       Copyright (c) 2013, GladeSoft, Inc.
##                  All Rights Reserved.
##
##                  NOTICE: THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
##                  GLADESOFT, INC., AND SHALL NOT BE REPRODUCED, COPIED
##                  IN WHOLE OR IN PART ADAPTED, MODIFIED, OR
##                  DISSEMINATED WITHOUT THE EXPRESS WRITTEN CONSENT
##                  OF GLADESOFT, INC. ANY REDISTRIBUTION OR
##                  PUBLICATION TO UNAUTHORIZED PERSONS IS STRICTLY
##                  PROHIBITED BY U.S. AND INTERNATIONAL COPYRIGHT LAW.
##
## DESCRIPTION:     Compilation directives for the example.
##
## AUTHOR:          M. Grosberg
##
## CREATION DATE:   May 29, 2006
##
##---------------------------------------------------------------------------
##
## HISTORY OF CHANGE
##
## -----+--------+------------------------------------------+------+---------
## VERS | DATE   | DESCRIPTION OF CHANGE                    | INIT | PR#
## =====+========+==========================================+======+=========
##  001 |05/29/06| File creation.                           | MYG  |
## -----+--------+------------------------------------------+------+---------
## -----+--------+------------------------------------------+------+---------
##---------------------------------------------------------------------------

default => sub
{
  my @finaldeps = app_sources();

  # Some POSIX systems require that the math library be linked in
  # for trig functions.
  push(@SYSLIBS, qw(-lm)) if ($TARGETOS eq "POSIX");
  
  die "target_binary not defined!\n"
   if (!defined $target_binary);

  my $demobin = $target_binary->('shttpd');

  stale([$demobin], [$SEMLIB, @finaldeps]) 
    and $target_link->($demobin,[$SEMLIB],@finaldeps);
}

