# change g++ to clang++ in the next line if you want to use that compiler export CPPP=g++ ifeq ($(CPPP), clang++) eflag = -std=c++11 -stdlib=libc++ else eflag = -std=c++0x endif cpp_depend: cd src && cp Makefile.pre Makefile && $(subst efl, $(eflag), $(subst cpp,$(CPPP), sh -c "cpp -MM efl *.cc >> Makefile")) cpp_all: cpp_depend cd src && $(MAKE) all cpp_programs: cpp_depend cpp_all ocaml_dep: cd aux && touch .depend1; touch .depend2; $(MAKE) depend1 && $(MAKE) depend2; ocaml_all: ocaml_dep cd aux && $(MAKE) all; all: cpp_programs ocaml_all clean_cc: cd src && cp Makefile.pre Makefile; $(MAKE) clean; rm -f Makefile Makefile.bak clean_oc: cd aux && $(MAKE) clean; rm -f .depend1; rm -f .depend2; clean_example: cd thrombin-example && $(MAKE) clean clean_example2: cd two-sphere-example && $(MAKE) clean clean_example3: cd two-charged-spheres-example && $(MAKE) clean clean_bin: cd bin && sh -c "rm -f *" clean: clean_cc clean_oc clean_example clean_example2 clean_example3 clean_bin