# FreeType 2 src Jamfile (c) 2001 David Turner
#

SubDir  FT2DEMO_TOP src ;

SubDirHdrs  $(FT2_INCLUDE) ;
SubDirHdrs  [ FT2DEMO_SubDir  src ] ;
SubDirHdrs  [ FT2DEMO_SubDir  graph ] ;

COMMON_LIB = $(LIBPREFIX)ft2common$(SUFLIB) ;

Library  $(COMMON_LIB) : common.c ;


PROGRAMS = ftlint ftdump ftmemchk fttimer fttry testnames ;
GRAPHIC_PROGRAMS = ftview ftmulti ftstring ;
{
  local  t ;

  for t in $(PROGRAMS) $(GRAPHIC_PROGRAMS)
  {
    Main           $(t) : $(t).c ;
    LinkLibraries  $(t) : $(FT2_LIB) $(COMMON_LIB) ;
  }

  for t in $(GRAPHIC_PROGRAMS)
  {
    LINKLIBS on $(t)$(SUFEXE) = $(GRAPH_LINKLIBS) ;
    LinkLibraries  $(t) : $(GRAPH_LIB) ;
  }
}


# Compile bytecode debugger when needed. Define the environment
# variable FT2_DEBUG_TT to enable this one before calling "jam"
#
if $(FT2_DEBUG_TT)
{
  SubDirHdrs $(FT2_INCLUDE)/../src/truetype ;

  LinkLibraries  ttdebug : $(FT2_LIB) ;
  Main           ttdebug : ttdebug.c ;
}

# end of src Jamfile
