SubDir HAIKU_TOP src tools docbook libxml2 ;SetSubDirSupportedPlatformsBeOSCompatible ;# defineslocal defines ;if $(HOST_PLATFORM) in $(HAIKU_BEOS_COMPATIBLE_PLATFORMS) {defines = [ FDefines HAVE_CONFIG_H=1 HAVE_BEOS_THREADS _REENTRANT ] ;} else {# Assumes non-BeOS host platforms have pthread supportdefines = [ FDefines HAVE_CONFIG_H=1 HAVE_PTHREAD_H _REENTRANT ] ;}# use different libaries depending on host platformlocal osLibs ;if $(HOST_PLATFORM) in $(HAIKU_HAIKU_COMPATIBLE_PLATFORMS) {osLibs = network ;} else if $(HOST_PLATFORM) in $(HAIKU_BEOS_COMPATIBLE_PLATFORMS) {osLibs = net ;} else {osLibs = m ;}SubDirCcFlags $(defines) ;SubDirC++Flags $(defines) ;# system headersSubDirSysHdrs [ FDirName $(HAIKU_TOP) src tools docbook libxml2 include ] ;BuildPlatformStaticLibrary <build>libxml2.a :SAX.centities.cencoding.cerror.cparserInternals.cparser.ctree.chash.clist.cxmlIO.cxmlmemory.curi.cvalid.cxlink.cHTMLparser.cHTMLtree.cdebugXML.cxpath.cxpointer.cxinclude.cnanohttp.cnanoftp.cDOCBparser.ccatalog.cglobals.cthreads.cc14n.cxmlstring.cxmlregexp.cxmlschemas.cxmlschemastypes.cxmlunicode.cxmlreader.crelaxng.cdict.cSAX2.cxmlwriter.clegacy.cchvalid.cpattern.cxmlsave.cxmlmodule.cschematron.c;BuildPlatformMain <build>xmllint :xmllint.c;LinkAgainst <build>xmllint: <build>libxml2.a $(osLibs) z ;