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
    pfbillboard
    pfdefcam
    pfinput
    pfinv
    pfengine
    pflight
    pfmesh
    pfmove
    pfquest
    pftest
    pftools
    pftrigger
    pfzone
    stdphyslayer
    tcpnetwork
    xmlpersist
  : blpython
  ;
  LinkStaticPlugins nettest_static : 
    bezier
    bezierldr
    bruteblock
    terrainldr
    bugplug
    csconin
    csddsimg
    csfont
    csgifimg
    csjpgimg
    csopcode
    csparser
    cspngimg
    cssynldr
    dynavis
    emit
    emitldr
    engine
    engseq
    fontplex
    frustvis
    genmesh
    gl3d 
    glshader_arb 
    glshader_fixed
    gmeshanim
    gmeshldr
    haze
    hazeldr
    imgplex
    null2d
    null3d
    nullmesh
    protomesh
    protomeshldr
    rendloop_loader
    rendstep_std
    reporter
    sequence
    shadermgr
    simpleformer
    simpleformerldr
    spr2d
    spr2dldr
    spr3d
    spr3dldr
    sprcal3d 
    sprcal3dldr
    stdpt
    stdrep
    thing
    thingldr
    vfs
    xmlread
    xmlshader
  : glshader_cg glshader_ps1 glwin32 glx2d glosx2d xwin xext86vm sndmanager
  : CRYSTAL
  ;
  ExternalLibs nettest_static : CRYSTAL ;
  
  SubVariant ;
}
