diff options
author | MITSUNARI Shigeo <[email protected]> | 2022-02-19 15:19:57 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-19 15:19:57 +0900 |
commit | b3892c15e066f7a50df11f406ce1d8e6fc5f75aa (patch) | |
tree | 8e3e5555b1fa9de1df0dcba47c93a20f0e3966b8 | |
parent | fbe60e5901c5fefbd2dd1b09ba565dd98920fb21 (diff) | |
parent | b4eddaced2b967e17815c9d96faa9fa222b6ef42 (diff) | |
download | xbyak-b3892c15e066f7a50df11f406ce1d8e6fc5f75aa.tar.gz xbyak-b3892c15e066f7a50df11f406ce1d8e6fc5f75aa.zip |
Merge pull request #138 from Tachi107/make-cxx-cpp-ld-flags
build(make): honour CXXFLAGS, CPPFLAGS and LDFLAGS
-rw-r--r-- | gen/Makefile | 2 | ||||
-rw-r--r-- | sample/Makefile | 2 | ||||
-rw-r--r-- | test/Makefile | 2 |
3 files changed, 3 insertions, 3 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 $@ diff --git a/sample/Makefile b/sample/Makefile index 0c100a3..5d8f8da 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -51,7 +51,7 @@ all: $(TARGET) CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith #-pedantic -CFLAGS=-g -O2 -fomit-frame-pointer -Wall -I../ $(CFLAGS_WARN) +CFLAGS=-g -O2 -fomit-frame-pointer -Wall -I../ $(CFLAGS_WARN) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) test: $(CXX) $(CFLAGS) test0.cpp -o $@ -m32 diff --git a/test/Makefile b/test/Makefile index 1ada398..b9dd413 100644 --- a/test/Makefile +++ b/test/Makefile @@ -22,7 +22,7 @@ all: $(TARGET) CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -CFLAGS=-O2 -fomit-frame-pointer -Wall -fno-operator-names -I../ -I./ $(CFLAGS_WARN) #-std=c++0x +CFLAGS=-O2 -fomit-frame-pointer -Wall -fno-operator-names -I../ -I./ $(CFLAGS_WARN) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) #-std=c++0x make_nm: $(CXX) $(CFLAGS) make_nm.cpp -o $@ normalize_prefix: normalize_prefix.cpp ../xbyak/xbyak.h |