From f06de7f34fc3eafb4c9042cbb7006c70d506fcfe Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 11 Jul 2002 22:10:01 +0000 Subject: [PATCH] Added BinCommand and StdBinCommands rules. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@99 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Jamrules b/Jamrules index f455c63873..5649a20bbd 100644 --- a/Jamrules +++ b/Jamrules @@ -60,6 +60,7 @@ if ! $(OBOS_BUILD_DESCRIPTION) { # Relative subdirs for distro dir (these are for *INTERNAL* use by the following rules only!) OBOS_APPS_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos apps ] ; +OBOS_BIN_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos bin ] ; OBOS_PREFS_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos preferences ] ; OBOS_SERVER_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos system servers ] ; OBOS_ADDON_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos system add-ons ] ; @@ -116,6 +117,27 @@ rule App MakeLocate $(<) : $(OBOS_APPS_DIR) ; } +rule BinCommand +{ + # BinCommand : : ; + SetupObjectsDir ; + Main $(1) : $(2) ; + MakeLocate $(1) : $(OBOS_BIN_DIR) ; + LinkSharedOSLibs $(1) : $(3) ; +} + +rule StdBinCommands +{ + # StdBinCommands : ; + local libs = $(2) ; + for source in $(1) + { + local target = $(source:S=) ; + target = [ FGristFiles $(target) ] ; + BinCommand $(target) : $(source) : $(libs) ; + } +} + rule Preference { # Preference : ;