Fix build race condition.

Before this change, referencing source in parent dir, such as
"../SEC_OMX_Vdec.c",  results in obj files spilling into the top obj dir.
What's worse, the same source is included in more than 1 module, so the
obj file may be written concurrently by multiple build jobs.
Because gmake use the path string to detect if 2 targets point to the
same file, make could not even issue a warning for duplicate rules.

I believe this is the root cause of the following transient build error:
1)
out/target/product/stingray/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Encoder_intermediates/../SEC_OMX_Venc.P:54:
 *** missing separator.  Stop.
 2)
 prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld:
 error:
 out/target/product/stingray/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Encoder_intermediates/../SEC_OMX_Venc.o:
 unknown mandatory EABI object attribute 46

Change-Id: I07721771d3afa86bd96703960c3a13305c424d60
7 files changed