build: Honor CPPFLAGS variable

This commit is contained in:
mintsuki 2022-09-20 21:28:12 +02:00
parent 37f30894fd
commit e06abc04b1
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -167,7 +167,7 @@ if test "x$NEED_GZIP" = "xyes"; then
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_LD, [linker 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
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
$(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 $@