Mercurial > hg > sv-dependency-builds
annotate src/capnproto-git-20161025/c++/Makefile.ekam @ 83:ae30d91d2ffe
Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author | Chris Cannam |
---|---|
date | Fri, 07 Feb 2020 11:51:13 +0000 |
parents | 9530b331f8c1 |
children |
rev | line source |
---|---|
cannam@48 | 1 .PHONY: all once continuous continuous-opt clean |
cannam@48 | 2 |
cannam@48 | 3 EKAM=`which ekam || echo .ekam/bin/ekam` |
cannam@48 | 4 |
cannam@48 | 5 ifeq ($(CXX),clang++) |
cannam@48 | 6 # Clang's verbose diagnostics don't play nice with the Ekam Eclipse plugin's error parsing, |
cannam@48 | 7 # so disable them. Also enable some useful Clang warnings (dunno if GCC supports them, and don't |
cannam@48 | 8 # care). |
cannam@48 | 9 EXTRA_FLAG=-fno-caret-diagnostics -Wglobal-constructors -Wextra-semi -Werror=return-type |
cannam@48 | 10 # EXTRA_FLAG=-fno-caret-diagnostics -Weverything -Wno-c++98-compat -Wno-shadow -Wno-c++98-compat-pedantic -Wno-padded -Wno-weak-vtables -Wno-gnu -Wno-unused-parameter -Wno-sign-conversion -Wno-undef -Wno-shorten-64-to-32 -Wno-conversion -Wno-unreachable-code -Wno-non-virtual-dtor |
cannam@48 | 11 else |
cannam@48 | 12 EXTRA_FLAG= |
cannam@48 | 13 endif |
cannam@48 | 14 |
cannam@48 | 15 all: |
cannam@48 | 16 echo "You probably accidentally told Eclipse to build. Stopping." |
cannam@48 | 17 |
cannam@48 | 18 once: |
cannam@48 | 19 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -O2 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 |
cannam@48 | 20 |
cannam@48 | 21 continuous: |
cannam@48 | 22 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -g -DCAPNP_DEBUG_TYPES=1 -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@48 | 23 |
cannam@48 | 24 continuous-opt: |
cannam@48 | 25 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -O2 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@48 | 26 |
cannam@48 | 27 continuous-opt3: |
cannam@48 | 28 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -O3 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@48 | 29 |
cannam@48 | 30 continuous-opts: |
cannam@48 | 31 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -Os -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@48 | 32 |
cannam@48 | 33 clean: |
cannam@48 | 34 rm -rf bin lib tmp |