diff options
author | bloodstalker <thabogre@gmail.com> | 2017-03-24 10:28:29 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-03-24 10:28:29 +0000 |
commit | c1b9735689efae8e056bde5f1805af0d83b1969b (patch) | |
tree | cbad4367ade514acf2198024114e162134e337db /tinyxml2 | |
parent | moved macros inside macros.mk (diff) | |
download | mutator-c1b9735689efae8e056bde5f1805af0d83b1969b.tar.gz mutator-c1b9735689efae8e056bde5f1805af0d83b1969b.zip |
moved macros inside macros.mk
Diffstat (limited to 'tinyxml2')
-rw-r--r-- | tinyxml2/makefile | 72 |
1 files changed, 3 insertions, 69 deletions
diff --git a/tinyxml2/makefile b/tinyxml2/makefile index 339e256..3613b79 100644 --- a/tinyxml2/makefile +++ b/tinyxml2/makefile @@ -1,74 +1,8 @@ -#############################################################VARS############################################################# -CXX?=clang++ -LLVM_CONF?=llvm-config -BUILD_MODE?=COV_NO_CLANG -CXX_FLAGS=$(shell $(LLVM_CONF) --cxxflags) +######################################INCLUDES################################# +include ../macros.mk -ifeq ($(BUILD_MODE), COV_USE) -ifneq ($(CXX), clang++) -$(error This build mode is only useable with clang++.) -endif -EXTRA_CXX_FALGS=-I$(shell $(LLVM_CONF) --src-root)/tools/clang/include -I$(shell $(LLVM_CONF) --obj-root)/tools/clang/include\ - -std=c++11 -stdlib=libstdc++ -UNDEBUG -fprofile-instr-use=code.profdata -EXTRA_LD_FLAGS=-v tinyxml2/tinyxml2.o -fprofile-instr-use=code.profdata -endif - -ifeq ($(BUILD_MODE), COV_GEN) -ifneq ($(CXX), clang++) -$(error This build mode is only useable with clang++.) -endif -EXTRA_CXX_FALGS=-I$(shell $(LLVM_CONF) --src-root)/tools/clang/include -I$(shell $(LLVM_CONF) --obj-root)/tools/clang/include\ - -std=c++11 -stdlib=libstdc++ -UNDEBUG -fprofile-instr-generate -EXTRA_LD_FLAGS=-v tinyxml2/tinyxml2.o -fprofile-instr-generate -endif - -#for gcov compatibility -ifeq ($(BUILD_MODE), COV_GNU) -#ifneq ($(CXX), clang++) -#$(error This build mode is only useable with clang++.) -#endif -EXTRA_CXX_FALGS=-I$(shell $(LLVM_CONF) --src-root)/tools/clang/include -I$(shell $(LLVM_CONF) --obj-root)/tools/clang/include\ - -std=c++11 -UNDEBUG -fprofile-arcs -ftest-coverage -EXTRA_LD_FLAGS=-v tinyxml2/tinyxml2.o -fprofile-arcs -ftest-coverage -endif - -ifeq ($(BUILD_MODE), COV_NO_CLANG) -EXTRA_CXX_FALGS=-I$(shell $(LLVM_CONF) --src-root)/tools/clang/include -I$(shell $(LLVM_CONF) --obj-root)/tools/clang/include\ - -std=c++11 -stdlib=libstdc++ -UNDEBUG -EXTRA_LD_FLAGS=-v tinyxml2/tinyxml2.o -endif - -ifeq ($(BUILD_MODE), COV_NO_CLANG_1Z) -ifeq ($(CXX), g++) -$(error This build mode is only useable with clang++.) -endif -EXTRA_CXX_FALGS=-I$(shell $(LLVM_CONF) --src-root)/tools/clang/include -I$(shell $(LLVM_CONF) --obj-root)/tools/clang/include\ - -std=c++1z -stdlib=libstdc++ -UNDEBUG -EXTRA_LD_FLAGS=-v tinyxml2/tinyxml2.o -endif - -ifeq ($(BUILD_MODE), COV_NO_CLANG_14) -ifeq ($(CXX), g++) -$(error This build mode is only useable with clang++.) -endif -EXTRA_CXX_FALGS=-I$(shell $(LLVM_CONF) --src-root)/tools/clang/include -I$(shell $(LLVM_CONF) --obj-root)/tools/clang/include\ - -std=c++14 -stdlib=libstdc++ -UNDEBUG -EXTRA_LD_FLAGS=-v tinyxml2/tinyxml2.o -endif - -ifeq ($(BUILD_MODE), GNU_MODE) -ifneq ($(CXX), g++) -$(error This build mode is only useable with g++.) -endif -EXTRA_CXX_FALGS=-I$(shell $(LLVM_CONF) --src-root)/tools/clang/include -I$(shell $(LLVM_CONF) --obj-root)/tools/clang/include\ - -std=c++11 -static-libstdc++ -UNDEBUG -EXTRA_LD_FLAGS=-v tinyxml2/tinyxml2.o -endif - -CXX_FLAGS+=$(EXTRA_CXX_FALGS) - -###########################################################RULES############################################################## +######################################RULES#################################### .DEFAULT: tinyxml2 .PHONY: tinyxml2 |