diff options
author | Andrea Pappacoda <[email protected]> | 2022-02-15 15:07:15 +0100 |
---|---|---|
committer | Andrea Pappacoda <[email protected]> | 2022-02-15 15:07:15 +0100 |
commit | b4eddaced2b967e17815c9d96faa9fa222b6ef42 (patch) | |
tree | 8e3e5555b1fa9de1df0dcba47c93a20f0e3966b8 /gen/Makefile | |
parent | fbe60e5901c5fefbd2dd1b09ba565dd98920fb21 (diff) | |
download | xbyak-b4eddaced2b967e17815c9d96faa9fa222b6ef42.tar.gz xbyak-b4eddaced2b967e17815c9d96faa9fa222b6ef42.zip |
build(make): honour CXXFLAGS, CPPFLAGS and LDFLAGS
It is currently impossible to pass custom flags to the makefiles using
environment variables, because they ignore the predefined macros
CXXFLAGS, CPPFLAGS and LDFLAGS.
Passing LDFLAGS is defined in the Posix standard
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html#tag_20_76_13_09),
while the CXXFLAGS and CPPFLAGS variables are predefined in GNU Make
(https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#Implicit-Variables).
Diffstat (limited to 'gen/Makefile')
-rw-r--r-- | gen/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gen/Makefile b/gen/Makefile index c3cd0ea..9442f0d 100644 --- a/gen/Makefile +++ b/gen/Makefile @@ -1,6 +1,6 @@ TARGET=../xbyak/xbyak_mnemonic.h BIN=sortline gen_code gen_avx512 -CFLAGS=-I../ -O2 -DXBYAK_NO_OP_NAMES -Wall -Wextra -Wno-missing-field-initializers +CFLAGS=-I../ -O2 -DXBYAK_NO_OP_NAMES -Wall -Wextra -Wno-missing-field-initializers $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) all: $(TARGET) ../CMakeLists.txt ../meson.build sortline: sortline.cpp $(CXX) $(CFLAGS) $< -o $@ |