Added BinCommand and StdBinCommands rules.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@99 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -60,6 +60,7 @@ if ! $(OBOS_BUILD_DESCRIPTION) {
|
|||||||
|
|
||||||
# Relative subdirs for distro dir (these are for *INTERNAL* use by the following rules only!)
|
# 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_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_PREFS_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos preferences ] ;
|
||||||
OBOS_SERVER_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos system servers ] ;
|
OBOS_SERVER_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos system servers ] ;
|
||||||
OBOS_ADDON_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos system add-ons ] ;
|
OBOS_ADDON_DIR ?= [ FDirName $(OBOS_DISTRO_TARGET) beos system add-ons ] ;
|
||||||
@@ -116,6 +117,27 @@ rule App
|
|||||||
MakeLocate $(<) : $(OBOS_APPS_DIR) ;
|
MakeLocate $(<) : $(OBOS_APPS_DIR) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rule BinCommand
|
||||||
|
{
|
||||||
|
# BinCommand <name> : <sources> : <libraries> ;
|
||||||
|
SetupObjectsDir ;
|
||||||
|
Main $(1) : $(2) ;
|
||||||
|
MakeLocate $(1) : $(OBOS_BIN_DIR) ;
|
||||||
|
LinkSharedOSLibs $(1) : $(3) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
rule StdBinCommands
|
||||||
|
{
|
||||||
|
# StdBinCommands <sources> : <libs> ;
|
||||||
|
local libs = $(2) ;
|
||||||
|
for source in $(1)
|
||||||
|
{
|
||||||
|
local target = $(source:S=) ;
|
||||||
|
target = [ FGristFiles $(target) ] ;
|
||||||
|
BinCommand $(target) : $(source) : $(libs) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rule Preference
|
rule Preference
|
||||||
{
|
{
|
||||||
# Preference <name> : <sources> ;
|
# Preference <name> : <sources> ;
|
||||||
|
|||||||
Reference in New Issue
Block a user