SubDir TOP src setup ; Application pssetup : [ Wildcard *.cpp *.h ] ; CompileGroups pssetup : client ; ExternalLibs pssetup : CRYSTAL ; LinkWith pssetup : paws psutil ; if $(HAVE_STATIC_PLUGINS) = "yes" { SubVariant static ; Application pssetup_static : [ Wildcard *.cpp *.h ] : independent noinstall nohelp ; CFlags pssetup_static : [ FDefines CS_STATIC_LINKED ] ; LFlags pssetup_static : "-lcrystalspace_staticplugins" ; MsvcDefine pssetup_static : CS_STATIC_LINKED ; LinkWith pssetup_static : paws psutil ; STATIC.PLUGINLIST = csddsimg cspngimg csfont cssynldr engine fontplex freefnt2 gl3d imgplex rendstep_std reporter shadermgr stdrep vfs xmlshader xmltiny ; STATIC.OPTIONALPLUGINLIST = ; if $(TARGET.OS) != "WIN32" { if $(X11.AVAILABLE) = "yes" { STATIC.PLUGINLIST += xwin ; } if $(XFREE86VM.AVAILABLE) = "yes" { STATIC.PLUGINLIST += xext86vm ; } STATIC.OPTIONALPLUGINLIST += glx2d ; } if $(TARGET.OS) = "WIN32" { STATIC.PLUGINLIST += glwin32 ; } if $(TARGET.OS) = "MACOS_X" { STATIC.PLUGINLIST += glosx2d ; } LinkStaticPlugins pssetup_static : $(STATIC.PLUGINLIST) : $(STATIC.OPTIONALPLUGINLIST) : CRYSTAL ; ExternalLibs pssetup_static : CRYSTAL ; CompileGroups pssetup_static : client_static ; SubVariant ; }