build: Honor CPPFLAGS variable
This commit is contained in:
parent
37f30894fd
commit
e06abc04b1
@ -54,6 +54,8 @@ export SED
|
||||
override AWK := @AWK@
|
||||
export AWK
|
||||
|
||||
CPPFLAGS ?= @CPPFLAGS@
|
||||
export CPPFLAGS
|
||||
CFLAGS ?= @CFLAGS@
|
||||
export CFLAGS
|
||||
LDFLAGS ?= @LDFLAGS@
|
||||
|
@ -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])
|
||||
|
@ -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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user