SubDir TOP apps nettest ;

Application nettest : [ Wildcard *.cpp *.h ] ;
CFlags nettest : "-DLIBDIR='\"$(INSTALLDIR.PLUGIN)/\"'" ;
LinkWith nettest : celtool ;
ExternalLibs nettest : CRYSTAL ;

if $(HAVE_STATIC_PLUGINS) = "yes"
{
  SubVariant static ;
  
  Application nettest_static : [ Wildcard *.cpp *.h ] : independent noinstall ;
  CFlags nettest_static : [ FDefines CS_STATIC_LINKED ] ;
  LFlags nettest_static : -lcrystalspace_staticplugins ;
  LinkWith nettest_static : cel_staticplugins celtool ;
  LinkStaticPlugins nettest_static :
    addon_celentity
    addon_celentitytpl
    addon_questdef
    bltest
    mgr_quests
    pfactormove
    pfdefcam
    pfinput
    pfinv
    pfengine
    pfmesh
    pfmove
    pfquest
    pftest
    pftools
    pftrigger
    pfzone
    stdphyslayer
    xmlpersist
  : blpython
  ;
  LinkStaticPlugins nettest_static : 
    ball
    ballldr
    bezier
    bezierldr
    bruteblock
    terrainldr
    bugplug
    csconin
    csddsimg
    csfont
    csgifimg
    csjpgimg
    csparser
    cspngimg
    cssynldr
    dynavis
    emit
    emitldr
    engine
    engseq
    explo
    exploldr
    fire
    fireldr
    fontplex
    fountain
    fountldr
    frustvis
    genmesh
    gl3d 
    glshader_arb 
    glshader_fixed
    gmeshanim
    gmeshldr
    gmeshskelanim
    haze
    hazeldr
    ieplex
    imgplex
    nullmesh
    opcode
    protomesh
    protomeshldr
    rain
    rainldr
    rendloop_loader
    rendstep_std
    reporter
    sequence
    shadermgr
    simpcon
    simpleformer
    simpleformerldr
    snow
    snowldr
    spiral
    spirldr
    spr2d
    spr2dldr
    spr3d
    spr3dldr
    sprcal3d 
    sprcal3dldr
    starldr
    stars
    stdpt
    stdrep
    thing
    thingldr
    vfs
    xmlread
    xmlshader
  : glwin32 glx2d glosx2d xwin
  : CRYSTAL
  ;
  ExternalLibs nettest_static : CRYSTAL ;
  
  SubVariant ;
}
