From d59dbdf1b4df551ac05c445ba978639b75464ce6 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 20 Mar 2018 03:00:06 +0100 Subject: [PATCH] Support "asflags" and "cppflags" for assembly sources --- src/makefile.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/makefile.c b/src/makefile.c index 6b88381..48c1678 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -1721,11 +1721,22 @@ static int _target_source(Makefile * makefile, _makefile_print(makefile, "%s", "$(LIBTOOL) --mode=compile "); _makefile_print(makefile, "%s", "$(AS)"); + source[len] = '.'; /* FIXME ugly */ if(ot == OT_ASMPP_SOURCE) + { _makefile_print(makefile, "%s%s%s", " $(", target, "_CPPFLAGS)"); + if((p = _makefile_get_config(makefile, source, + "cppflags")) + != NULL) + _makefile_print(makefile, " %s", p); + } _makefile_print(makefile, "%s%s%s", " $(", target, "_ASFLAGS)"); + if((p = _makefile_get_config(makefile, source, + "asflags")) != NULL) + _makefile_print(makefile, " %s", p); + source[len] = '\0'; /* FIXME ugly */ if(tt == TT_OBJECT) _makefile_print(makefile, "%s%s%s%s%s%s", " -o $(OBJDIR)", target, " ",