Adds grist to the LIBGCC_OBJECTS files.

Added UnarchiveObjects rule that dearchives "ar"-archives.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8311 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-07-05 18:34:35 +00:00
parent f72c9ca90e
commit 705fc998ca
1 changed files with 19 additions and 0 deletions

View File

@ -70,6 +70,9 @@ GCC_VERSION = ;
# Save the platform default headers.
PLATFORM_DEFAULT_HEADERS = $(HDRS) ;
# Add some grist to the libgcc objects
LIBGCC_OBJECTS = $(LIBGCC_OBJECTS:G=libgcc) ;
# We do not include any local BeOS system headers by default
CCFLAGS += -nostdinc ;
C++FLAGS += -nostdinc ;
@ -1512,6 +1515,22 @@ actions Bison1
[ -f $(1[1]).h ] && mv $(1[1]).h $(1[2]) || true
}
rule UnarchiveObjects
{
# UnarchiveObjects <target objects> : <static object>
MakeLocate $(1) : $(LOCATE_TARGET) ;
Depends $(2) : $(1) ;
SEARCH on $(2) = $(SEARCH_SOURCE) ;
}
actions UnarchiveObjects
{
cd `dirname $(1[1])`
ar -x "$(2)" $(1)
cd -
}
# BeOS specific rules
rule XRes