capnproto

FORK: Cap'n Proto serialization/RPC system - core tools and C++ library
git clone https://git.neptards.moe/neptards/capnproto.git
Log | Files | Refs | README | LICENSE

Makefile.ekam (1396B)


      1 .PHONY: all once continuous continuous-opt clean
      2 
      3 EKAM=`which ekam || echo .ekam/bin/ekam`
      4 
      5 ifeq ($(CXX),clang++)
      6   # Clang's verbose diagnostics don't play nice with the Ekam Eclipse plugin's error parsing,
      7   # so disable them.  Also enable some useful Clang warnings (dunno if GCC supports them, and don't
      8   # care).
      9   EXTRA_FLAG=-fno-caret-diagnostics -Wglobal-constructors -Wextra-semi -Werror=return-type
     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
     11 else
     12   EXTRA_FLAG=
     13 endif
     14 
     15 all:
     16 	echo "You probably accidentally told Eclipse to build.  Stopping."
     17 
     18 once:
     19 	CXXFLAGS="$(EXTRA_FLAG) -std=c++14 -O2 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6
     20 
     21 continuous:
     22 	CXXFLAGS="$(EXTRA_FLAG) -std=c++14 -g -DCAPNP_DEBUG_TYPES=1 -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315
     23 
     24 continuous-opt:
     25 	CXXFLAGS="$(EXTRA_FLAG) -std=c++14 -O2 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315
     26 
     27 continuous-opt3:
     28 	CXXFLAGS="$(EXTRA_FLAG) -std=c++14 -O3 -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315
     29 
     30 continuous-opts:
     31 	CXXFLAGS="$(EXTRA_FLAG) -std=c++14 -Os -DNDEBUG -Wall" LIBS='-lz -pthread' $(EKAM) -j6 -c -n :51315
     32 
     33 clean:
     34 	rm -rf bin lib tmp