1338b8dc3SIngo Weinhold# Haiku Jamrules 2979afc6fSAxel Dörfler 3338b8dc3SIngo Weinhold# Main directories used by the build. 4338b8dc3SIngo WeinholdHAIKU_OUTPUT_DIR ?= [ FDirName $(HAIKU_TOP) generated ] ; 5338b8dc3SIngo WeinholdHAIKU_BUILD_OUTPUT_DIR = [ FDirName $(HAIKU_OUTPUT_DIR) build ] ; 6338b8dc3SIngo WeinholdHAIKU_BUILD_DIR = [ FDirName $(HAIKU_TOP) build ] ; 7338b8dc3SIngo WeinholdHAIKU_BUILD_RULES_DIR = [ FDirName $(HAIKU_BUILD_DIR) jam ] ; 8338b8dc3SIngo WeinholdHAIKU_OBJECT_DIR = [ FDirName $(HAIKU_OUTPUT_DIR) objects ] ; 9338b8dc3SIngo WeinholdHAIKU_COMMON_PLATFORM_OBJECT_DIR = [ FDirName $(HAIKU_OBJECT_DIR) common ] ; 104ff6d49fSIngo Weinhold 114ff6d49fSIngo Weinhold# Cache files for header scanning and jamfile caching 124ff6d49fSIngo WeinholdHCACHEFILE = header_cache ; 134ff6d49fSIngo WeinholdJCACHEFILE = jamfile_cache ; 14338b8dc3SIngo WeinholdLOCATE on $(HCACHEFILE) $(JCACHEFILE) = $(HAIKU_BUILD_OUTPUT_DIR) ; 159eea4522SIngo Weinhold 16338b8dc3SIngo Weinhold# The build setup and rules are neatly organized in several files. Include 17338b8dc3SIngo Weinhold# them now. Start with the side-effect-less rules, since they are the most 18338b8dc3SIngo Weinhold# likely to be used in the top level context (i.e. not only in rules). 19338b8dc3SIngo Weinhold# At the end include BuildSetup that sets up global variables etc. The 20338b8dc3SIngo Weinhold# optional user-defined UserBuildConfig is included thereafter. 21338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) HelperRules ] ; 22*25b12e83SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) MathRules ] ; 23338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) BeOSRules ] ; 24338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) ConfigRules ] ; 25338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) DocumentationRules ] ; 26338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) FileRules ] ; 27338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) FreetypeRules ] ; 28338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) HeadersRules ] ; 29338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) KernelRules ] ; 30338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) ImageRules ] ; 31338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) MainBuildRules ] ; 32338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) MiscRules ] ; 33338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) OverriddenJamRules ] ; 34338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) PackageRules ] ; 35338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) TestsRules ] ; 36338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) BuildSetup ] ; 37b1e5b60cSAxel Dörfler 38338b8dc3SIngo Weinhold# Include UserBuildConfig. 398c17a26bSIngo Weinhold{ 40338b8dc3SIngo Weinhold local userBuildConfig 41338b8dc3SIngo Weinhold = [ GLOB $(HAIKU_BUILD_RULES_DIR) : UserBuildConfig ] ; 42338b8dc3SIngo Weinhold if $(userBuildConfig) { 43338b8dc3SIngo Weinhold include $(userBuildConfig) ; 448c17a26bSIngo Weinhold } 458c17a26bSIngo Weinhold} 468c17a26bSIngo Weinhold 47338b8dc3SIngo WeinholdPrepareConfigVariables ; 485dc4e1efSIngo Weinhold 49338b8dc3SIngo Weinhold# specify the Haiku image contents 50338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuImage ] ; 51