build: Honor CPPFLAGS variable

This commit is contained in:
mintsuki 2022-09-20 21:28:12 +02:00
parent 93ebf613e9
commit 025792e994
3 changed files with 5 additions and 3 deletions

View File

@ -54,6 +54,8 @@ export SED
override AWK := @AWK@ override AWK := @AWK@
export AWK export AWK
CPPFLAGS ?= @CPPFLAGS@
export CPPFLAGS
CFLAGS ?= @CFLAGS@ CFLAGS ?= @CFLAGS@
export CFLAGS export CFLAGS
LDFLAGS ?= @LDFLAGS@ LDFLAGS ?= @LDFLAGS@

View File

@ -186,7 +186,7 @@ if test "x$NEED_GZIP" = "xyes"; then
fi fi
fi fi
AC_ARG_VAR(CROSS_TOOLCHAIN, [alternative toolchain prefix (or 'llvm')]) AC_ARG_VAR(CROSS_TOOLCHAIN, [alternative toolchain prefix for Limine (or 'llvm')])
AC_ARG_VAR(CROSS_CC, [C compiler command for Limine]) AC_ARG_VAR(CROSS_CC, [C compiler command for Limine])
AC_ARG_VAR(CROSS_LD, [linker command for Limine]) AC_ARG_VAR(CROSS_LD, [linker command for Limine])
AC_ARG_VAR(CROSS_OBJCOPY, [objcopy command for Limine]) AC_ARG_VAR(CROSS_OBJCOPY, [objcopy command for Limine])

View File

@ -39,7 +39,7 @@ clean:
rm -f limine-version limine-version.exe rm -f limine-version limine-version.exe
limine-deploy: limine-deploy.c limine-deploy: limine-deploy.c
$(CC) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-deploy.c -o $@ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-deploy.c -o $@
limine-version: limine-version.c limine-version: limine-version.c
$(CC) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-version.c -o $@ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-version.c -o $@