<commit_before>CC=g++
LD=g++
PCH=
CFLAGS=-Wall -std=c++11 -g -c
LDFLAGS=-lboost_program_options
OBJECTS=main.o parser.o oneStepCd.o vns.o unit.a
HEADERS=header/vns.hpp$(PCH) header/oneStepCd.hpp$(PCH) header/parser.hpp$(PCH) header/main.hpp$(PCH)
PROG=pcp

all: gcc

.PHONY: temp

clang:
	@$(MAKE) CC=clang++ LD=clang++ PCH=.pch $(PROG)

gcc:
	@$(MAKE) CC=g++ LD=g++ PCH=.gch $(PROG)

$(PROG): $(OBJECTS)
	@echo $(LD)": Linking executable "$(PROG)
	@$(LD) $(LDFLAGS) $(OBJECTS) -o $(PROG)
	
main.o: main.cpp $(HEADERS)
	@echo $(CC)": Compiling "$@
	@$(CC) $(CFLAGS) -include header/main.hpp -o main.o main.cpp
	
parser.o: parser.cpp header/parser.hpp$(PCH)
	@echo $(CC)": Compiling "$@
	@$(CC) $(CFLAGS) -include header/parser.hpp -o parser.o parser.cpp

oneStepCd.o: oneStepCd.cpp header/oneStepCd.hpp$(PCH)
	@echo $(CC)": Compiling "$@
	@$(CC) $(CFLAGS) -include header/oneStepCd.hpp -o oneStepCd.o oneStepCd.cpp

vns.o: vns.cpp header/vns-priv.hpp$(PCH)
	@echo $(CC)": Compiling "$@
	@$(CC) $(CFLAGS) -include header/vns-priv.hpp -o vns.o vns.cpp
	
unit.a: temp
	@cd units; $(MAKE) $(MFLAGS) unit.a

header/vns-priv.hpp$(PCH): header/vns-priv.hpp header/pcp.hpp header/vns.hpp
	@echo $(CC)": Precompiling "$@
	@$(CC) $(CFLAGS) -x c++-header header/vns-priv.hpp -o header/vns-priv.hpp$(PCH)

header/vns.hpp$(PCH): header/vns.hpp header/pcp.hpp
	@echo $(CC)": Precompiling "$@
	@$(CC) $(CFLAGS) -x c++-header header/vns.hpp -o header/vns.hpp$(PCH)

header/main.hpp$(PCH): header/main.hpp header/pcp.hpp header/oneStepCd.hpp header/parser.hpp header/vns.hpp 
	@echo $(CC)": Precompiling "$@
	@$(CC) $(CFLAGS) -x c++-header header/main.hpp -o header/main.hpp$(PCH)
	
header/parser.hpp$(PCH): header/parser.hpp header/pcp.hpp
	@echo $(CC)": Precompiling "$@
	@$(CC) $(CFLAGS) -x c++-header header/parser.hpp -o header/parser.hpp$(PCH)

header/oneStepCd.hpp$(PCH): header/oneStepCd.hpp header/pcp.hpp
	@echo $(CC)": Precompiling "$@
	@$(CC) $(CFLAGS) -x c++-header header/oneStepCd.hpp -o header/oneStepCd.hpp$(PCH)

clean:
	@echo "rm: Cleaning directory ."
	@rm -f $(PROG) $(OBJECTS)
	@cd units; $(MAKE) clean

clean-header:
	@echo "rm: Cleaning precompiled headers"
	@rm -f header/*.pch header/*.gch<commit_msg>Modified Makefile for travis and to avoid recursion<commit_after>CXX?=g++
LD=$(CXX)
PCH=.ch
ifeq ($(CXX),clang++)
	PCH=.pch
else ifeq ($(CXX),g++)
	PCH=.gch
endif
CFLAGS=-Wall -std=c++11 -g -c
LDFLAGS=-lboost_program_options
OBJECTS=main.o parser.o oneStepCd.o vns.o unit.a
HEADERS=header/vns.hpp$(PCH) header/oneStepCd.hpp$(PCH) header/parser.hpp$(PCH) header/main.hpp$(PCH)
PROG=pcp

$(PROG): $(OBJECTS)
	@echo $(LD)": Linking executable "$(PROG)
	@$(LD) $(LDFLAGS) $(OBJECTS) -o $(PROG)
	
main.o: main.cpp $(HEADERS)
	@echo $(CXX)": Compiling "$@
	@$(CXX) $(CFLAGS) -include header/main.hpp -o main.o main.cpp
	
parser.o: parser.cpp header/parser.hpp$(PCH)
	@echo $(CXX)": Compiling "$@
	@$(CXX) $(CFLAGS) -include header/parser.hpp -o parser.o parser.cpp

oneStepCd.o: oneStepCd.cpp header/oneStepCd.hpp$(PCH)
	@echo $(CXX)": Compiling "$@
	@$(CXX) $(CFLAGS) -include header/oneStepCd.hpp -o oneStepCd.o oneStepCd.cpp

vns.o: vns.cpp header/vns-priv.hpp$(PCH)
	@echo $(CXX)": Compiling "$@
	@$(CXX) $(CFLAGS) -include header/vns-priv.hpp -o vns.o vns.cpp
	
unit.a: temp
	@cd units; $(MAKE) $(MFLAGS) unit.a

header/vns-priv.hpp$(PCH): header/vns-priv.hpp header/pcp.hpp header/vns.hpp
	@echo $(CXX)": Precompiling "$@
	@$(CXX) $(CFLAGS) -x c++-header header/vns-priv.hpp -o header/vns-priv.hpp$(PCH)

header/vns.hpp$(PCH): header/vns.hpp header/pcp.hpp
	@echo $(CXX)": Precompiling "$@
	@$(CXX) $(CFLAGS) -x c++-header header/vns.hpp -o header/vns.hpp$(PCH)

header/main.hpp$(PCH): header/main.hpp header/pcp.hpp header/oneStepCd.hpp header/parser.hpp header/vns.hpp 
	@echo $(CXX)": Precompiling "$@
	@$(CXX) $(CFLAGS) -x c++-header header/main.hpp -o header/main.hpp$(PCH)
	
header/parser.hpp$(PCH): header/parser.hpp header/pcp.hpp
	@echo $(CXX)": Precompiling "$@
	@$(CXX) $(CFLAGS) -x c++-header header/parser.hpp -o header/parser.hpp$(PCH)

header/oneStepCd.hpp$(PCH): header/oneStepCd.hpp header/pcp.hpp
	@echo $(CXX)": Precompiling "$@
	@$(CXX) $(CFLAGS) -x c++-header header/oneStepCd.hpp -o header/oneStepCd.hpp$(PCH)

clean:
	@echo "rm: Cleaning directory ."
	@rm -f $(PROG) $(OBJECTS)
	@cd units; $(MAKE) clean

clean-header:
	@echo "rm: Cleaning precompiled headers"
	@rm -f header/*.pch header/*.gch

.PHONY: temp

clang:
	@$(MAKE) CXX=clang++ $(PROG)

gcc:
	@$(MAKE) CXX=g++ $(PROG)
{'fraction_non_alphanumeric': 0.21547328751939704, 'fraction_numerical': 0.0008867213478164486, 'mean_word_length': 4.489051094890511, 'pattern_counts': {'":': 20, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2413273', 'n_tokens_mistral': 2009, 'n_tokens_neox': 1921, 'n_words': 402}