From d25a77b4fe491629b07d8191b0798ce532f4562d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 11 Jul 2002 11:58:30 +0000 Subject: [PATCH] Added UsePosixHeaders and UsePosixObjectHeaders rules and added the POSIX headers in SetupIncludes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@80 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Jamrules b/Jamrules index 943a6d0ad6..5e96d1e626 100644 --- a/Jamrules +++ b/Jamrules @@ -76,6 +76,7 @@ rule SetupIncludes { OBOS_INCLUDES ?= . add-ons app be_apps device drivers game interface kernel mail media midi midi2 net opengl storage support translation ; UsePublicHeaders $(OBOS_INCLUDES) ; + UsePosixHeaders ; } #------------------------------------------------------------------------------- @@ -494,6 +495,28 @@ rule UseArchObjectHeaders ObjectHdrs $(targets) : $(headers) ; } +rule UsePosixHeaders +{ + # UsePrivateHeaders ; + # + # Adds the POSIX header dir to the header search + # dirs of the subdirectory. + # NOTE: This rule must be invoked *before* the rule that builds the objects. + + SubDirHdrs [ FDirName $(OBOS_TOP) headers posix ] ; +} + +rule UsePosixObjectHeaders +{ + # UsePosixObjectHeaders ; + # + # Adds the POSIX header dir to the header search + # dirs of . + # NOTE: This rule must be invoked *after* the rule that builds the objects. + + ObjectHdrs $(1) : [ FDirName $(OBOS_TOP) headers posix ] ; +} + rule SplitPath { # SplitPath ;