Mercurial > hg > sv-dependency-builds
annotate src/capnproto-0.6.0/c++/Makefile.ekam @ 169:223a55898ab9 tip default
Add null config files
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 02 Mar 2020 14:03:47 +0000 |
parents | 45360b968bf4 |
children |
rev | line source |
---|---|
cannam@147 | 1 .PHONY: all once continuous continuous-opt clean |
cannam@147 | 2 |
cannam@147 | 3 EKAM=`which ekam || echo .ekam/bin/ekam` |
cannam@147 | 4 |
cannam@147 | 5 ifeq ($(CXX),clang++) |
cannam@147 | 6 # Clang's verbose diagnostics don't play nice with the Ekam Eclipse plugin's error parsing, |
cannam@147 | 7 # so disable them. Also enable some useful Clang warnings (dunno if GCC supports them, and don't |
cannam@147 | 8 # care). |
cannam@147 | 9 EXTRA_FLAG=-fno-caret-diagnostics -Wglobal-constructors -Wextra-semi -Werror=return-type |
cannam@147 | 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@147 | 11 else |
cannam@147 | 12 EXTRA_FLAG= |
cannam@147 | 13 endif |
cannam@147 | 14 |
cannam@147 | 15 all: |
cannam@147 | 16 echo "You probably accidentally told Eclipse to build. Stopping." |
cannam@147 | 17 |
cannam@147 | 18 once: |
cannam@147 | 19 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -O2 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 |
cannam@147 | 20 |
cannam@147 | 21 continuous: |
cannam@147 | 22 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -g -DCAPNP_DEBUG_TYPES=1 -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@147 | 23 |
cannam@147 | 24 continuous-opt: |
cannam@147 | 25 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -O2 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@147 | 26 |
cannam@147 | 27 continuous-opt3: |
cannam@147 | 28 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -O3 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@147 | 29 |
cannam@147 | 30 continuous-opts: |
cannam@147 | 31 CXXFLAGS="$(EXTRA_FLAG) -std=c++11 -Os -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315 |
cannam@147 | 32 |
cannam@147 | 33 clean: |
cannam@147 | 34 rm -rf bin lib tmp |