commit ad7d0e3b9611dd345170103884abab748feffb0c
parent 839151ec1dcc23263e6fb701703f762d3c9ad19a
Author: vaplv <vaplv@free.fr>
Date: Tue, 27 Jun 2023 16:44:59 +0200
Add RSys CFLAGS when generating .d files
It's actually useless since RSys headers are probably included as system
headers and the compiler's -MM option is precisely used to ignore this
type of headers in the calculation of dependencies. Anyway, we add the
RSys CFLAGS because they are not only used to define RSys include
directories but can also be used to provide additional compilation
options. Strictly speaking, these CFLAGS are therefore necessary, even
when generating dependency files.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -53,7 +53,7 @@ $(LIBNAME_STATIC): $(OBJ)
.SUFFIXES: .c .d .o
.c.d:
- @$(CC) $(CFLAGS) -MM -MT "$(@:.d=.o) $@" $< -MF $@
+ @$(CC) $(CFLAGS) $(RSYS_CFLAGS) -MM -MT "$(@:.d=.o) $@" $< -MF $@
.c.o:
$(CC) $(CFLAGS) $(RSYS_CFLAGS) -DAW_SHARED_BUILD -c $< -o $@