libroot: Pass members to filter as on-target variable

This commit is contained in:
François Revol
2013-10-09 22:04:36 +02:00
parent 158604494b
commit c19c9e08ef
+3 -5
View File
@@ -10,16 +10,14 @@ rule FilterArchive
AR on $(1) = $(TARGET_AR_$(TARGET_PACKAGING_ARCH)) d ; AR on $(1) = $(TARGET_AR_$(TARGET_PACKAGING_ARCH)) d ;
# TODO: use $(TARGET_DELARFLAGS_$(TARGET_PACKAGING_ARCH)) # TODO: use $(TARGET_DELARFLAGS_$(TARGET_PACKAGING_ARCH))
RANLIB on $(1) = $(TARGET_RANLIB_$(TARGET_PACKAGING_ARCH)) ; RANLIB on $(1) = $(TARGET_RANLIB_$(TARGET_PACKAGING_ARCH)) ;
MEMBERS on $(1) = $(3) ;
MakeLocateArch $(1) ; MakeLocateArch $(1) ;
Depends $(1) : $(2) ; Depends $(1) : $(2) ;
File $(1) : $(2) ; File $(1) : $(2) ;
# we don't want the path
# XXX: is it done this way?
NotFile $(3) ;
# delete the unwanted members # delete the unwanted members
FilterArchive1 $(1) : $(3) ; FilterArchive1 $(1) ;
if $(RANLIB) { if $(RANLIB) {
Ranlib $(1) ; Ranlib $(1) ;
@@ -28,7 +26,7 @@ rule FilterArchive
actions FilterArchive1 actions FilterArchive1
{ {
$(AR) $(<) $(>) $(AR) $(<) $(MEMBERS)
} }
local architectureObject ; local architectureObject ;