Support "asflags" and "cppflags" for assembly sources
This commit is contained in:
parent
b21ae99bcc
commit
d59dbdf1b4
@ -1721,11 +1721,22 @@ static int _target_source(Makefile * makefile,
|
|||||||
_makefile_print(makefile, "%s",
|
_makefile_print(makefile, "%s",
|
||||||
"$(LIBTOOL) --mode=compile ");
|
"$(LIBTOOL) --mode=compile ");
|
||||||
_makefile_print(makefile, "%s", "$(AS)");
|
_makefile_print(makefile, "%s", "$(AS)");
|
||||||
|
source[len] = '.'; /* FIXME ugly */
|
||||||
if(ot == OT_ASMPP_SOURCE)
|
if(ot == OT_ASMPP_SOURCE)
|
||||||
|
{
|
||||||
_makefile_print(makefile, "%s%s%s", " $(",
|
_makefile_print(makefile, "%s%s%s", " $(",
|
||||||
target, "_CPPFLAGS)");
|
target, "_CPPFLAGS)");
|
||||||
|
if((p = _makefile_get_config(makefile, source,
|
||||||
|
"cppflags"))
|
||||||
|
!= NULL)
|
||||||
|
_makefile_print(makefile, " %s", p);
|
||||||
|
}
|
||||||
_makefile_print(makefile, "%s%s%s", " $(", target,
|
_makefile_print(makefile, "%s%s%s", " $(", target,
|
||||||
"_ASFLAGS)");
|
"_ASFLAGS)");
|
||||||
|
if((p = _makefile_get_config(makefile, source,
|
||||||
|
"asflags")) != NULL)
|
||||||
|
_makefile_print(makefile, " %s", p);
|
||||||
|
source[len] = '\0'; /* FIXME ugly */
|
||||||
if(tt == TT_OBJECT)
|
if(tt == TT_OBJECT)
|
||||||
_makefile_print(makefile, "%s%s%s%s%s%s",
|
_makefile_print(makefile, "%s%s%s%s%s%s",
|
||||||
" -o $(OBJDIR)", target, " ",
|
" -o $(OBJDIR)", target, " ",
|
||||||
|
Loading…
Reference in New Issue
Block a user