wmakeCollect: Name the object makefiles based on the object path
Ensures the order of compilation relates to the location of the source files
This commit is contained in:
parent
948e10841b
commit
aad28cbb78
@ -125,12 +125,12 @@ then
|
|||||||
# Make sure directories exist
|
# Make sure directories exist
|
||||||
mkdir -p $collectDir
|
mkdir -p $collectDir
|
||||||
|
|
||||||
# Unique file name for makefile for the current target
|
|
||||||
file="$collectDir/$$_${RANDOM}"
|
|
||||||
|
|
||||||
# The current target
|
# The current target
|
||||||
object="${@: -1:1}"
|
object="${@: -1:1}"
|
||||||
|
|
||||||
|
# Create a unique name for the makefile from the object path
|
||||||
|
file=$collectDir/${object////_}
|
||||||
|
|
||||||
# Add the current target to the list of objects
|
# Add the current target to the list of objects
|
||||||
echo "OBJECTS += $object" >> $file
|
echo "OBJECTS += $object" >> $file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user