mirror of
https://github.com/limine-bootloader/limine
synced 2025-01-06 04:42:16 +03:00
build: Honor CPPFLAGS variable
This commit is contained in:
parent
d5ff44676b
commit
dab2a35b3e
@ -54,6 +54,8 @@ export SED
|
||||
override AWK := @AWK@
|
||||
export AWK
|
||||
|
||||
CPPFLAGS ?= @CPPFLAGS@
|
||||
export CPPFLAGS
|
||||
CFLAGS ?= @CFLAGS@
|
||||
export CFLAGS
|
||||
LDFLAGS ?= @LDFLAGS@
|
||||
|
@ -186,7 +186,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