Define two pseudo targets for the target and build platform.
* The main build rules now cause their targets to depend on the platform such that global per-platform intializations can be set up by making the platform pseudo target depend on the target returned by the initialization rule.
This commit is contained in:
@@ -168,7 +168,7 @@ rule StaticLibraryFromObjects
|
||||
|
||||
rule AssembleNasm
|
||||
{
|
||||
Depends $(<) : $(>) ;
|
||||
Depends $(<) : $(>) [ on $(<) return $(PLATFORM) ] ;
|
||||
}
|
||||
|
||||
actions AssembleNasm
|
||||
@@ -343,7 +343,7 @@ rule CreateAsmStructOffsetsHeader header : source
|
||||
|
||||
# locate object, search for source, and set on target variables
|
||||
|
||||
Depends $(header) : $(source) ;
|
||||
Depends $(header) : $(source) $(PLATFORM) ;
|
||||
SEARCH on $(source) += $(SEARCH_SOURCE) ;
|
||||
MakeLocateArch $(header) ;
|
||||
LocalClean clean : $(header) ;
|
||||
|
||||
Reference in New Issue
Block a user