<commit_before>CC   = clang
CXX  = clang++

ifeq ($(shell uname -s),Darwin)
DARWIN = -stdlib=libc++
else
DARWIN = 
endif

include ./Visitors/Makefile
include ./ASTNodes/Makefile
include ./CmdArgs/Makefile

DEBUG = -g 
CFLAGS = -Wall -O0  $(DEBUG)
CXXFLAGS = -Wall -O0 -I$(ASTDIR) -I$(VISITORDIR) -I. $(DEBUG) \
         -I/usr/local/include -I$(CMDARGSDIR) 
CSTD = -std=c99
CXXSTD = -std=c++11 $(DARWIN)


APCOMEXE = raft
APHEXE = raft_h


APCOMCPPOBJ = main data p prep options_vars \
				  set_options driver common \
              cpp_output_handler ClassTree \
              FindLine symtab $(CMDARGSCPPCODE)
              
APCOMSOBJ =  raft_parser raft_lexer
APCOMSOBJS = $(addsuffix .o, $(APCOMSOBJ) )
APCOMLIBS = 
APCOMFILES = $(addsuffix .cpp, $(APCOMCPPOBJ))
APCOMOBJS  = $(addsuffix .o, $(APCOMCPPOBJ))

APHCPPOBJ = aphmain
APHSOBJ = aph_parser aph_lexer
APHLIBS = 
APHFILES = $(addsuffix .cpp, $(APHCPPOBJ))
APHOBJS = $(addsuffix .o, $(APHCPPOBJ))


CLEANLIST =  $(addsuffix .o, $(OBJ)) $(OBJS) \
             $(APCOMSOBJS)\
             $(addsuffix .o, $(APHSOBJ) )    \
				 $(APCOMOBJS)\
				 raft_parser.tab.cc raft_parser.tab.hh \
				 location.hh position.hh \
			    stack.hh raft_parser.output \
				 raft_lexer.yy.cc rafth_lexer.yy.cc $(APCOMEXE)\

.PHONY: all
all:  raft

raft: $(APCOMFILES)
	$(MAKE) nodes
	$(MAKE) visitors
	$(MAKE) $(APCOMSOBJ)
	$(MAKE) $(APCOMOBJS)
	$(CXX) $(CXXFLAGS) $(CXXSTD) -o $(APCOMEXE) $(APCOMOBJS) \
	$(APCOMSOBJS) $(ASTNODEOBJS) $(VISITOROBJS) $(LIBS)

rafth: $(APHFILES)
	$(MAKE) $(APHSOBJ)
	$(MAKE) $(APHOBJS)
	$(CXX) $(CXXFLAGS) $(CXXSTD) -o $(APHEXE) $(APHOBJS) \
	rafth_parser.o rafth_lexer.o $(LIBS)

raft_parser: raft_parser.yy
	bison -d -v raft_parser.yy
	$(CXX) $(CXXSTD) $(CXXFLAGS) -c -o raft_parser.o raft_parser.tab.cc

raft_lexer: raft_lexer.l
	flex --outfile=raft_lexer.yy.cc $<
	$(CXX) $(CXXSTD) $(CXXFLAGS) -c raft_lexer.yy.cc -o raft_lexer.o
<commit_msg>updates to Makefile to supress register warnings with g++/clang++<commit_after>CC   = clang
CXX  = clang++

ifeq ($(shell uname -s),Darwin)
DARWIN = -stdlib=libc++
else
DARWIN = 
endif

include ./Visitors/Makefile
include ./ASTNodes/Makefile
include ./CmdArgs/Makefile

DEBUG = -g 
CFLAGS = -Wall -O0  $(DEBUG)
CXXFLAGS = -Wall -O0 -I$(ASTDIR) -I$(VISITORDIR) -I. $(DEBUG) \
         -I/usr/local/include -I$(CMDARGSDIR) 
CSTD = -std=c99
CXXSTD = -std=c++11 $(DARWIN)


APCOMEXE = raft
APHEXE = raft_h


APCOMCPPOBJ = main data p prep options_vars \
				  set_options driver common \
              cpp_output_handler ClassTree \
              FindLine symtab $(CMDARGSCPPCODE)
              
APCOMSOBJ =  raft_parser raft_lexer
APCOMSOBJS = $(addsuffix .o, $(APCOMSOBJ) )
APCOMLIBS = 
APCOMFILES = $(addsuffix .cpp, $(APCOMCPPOBJ))
APCOMOBJS  = $(addsuffix .o, $(APCOMCPPOBJ))

APHCPPOBJ = aphmain
APHSOBJ = aph_parser aph_lexer
APHLIBS = 
APHFILES = $(addsuffix .cpp, $(APHCPPOBJ))
APHOBJS = $(addsuffix .o, $(APHCPPOBJ))


CLEANLIST =  $(addsuffix .o, $(OBJ)) $(OBJS) \
             $(APCOMSOBJS)\
             $(addsuffix .o, $(APHSOBJ) )    \
				 $(APCOMOBJS)\
				 raft_parser.tab.cc raft_parser.tab.hh \
				 location.hh position.hh \
			    stack.hh raft_parser.output \
				 raft_lexer.yy.cc rafth_lexer.yy.cc $(APCOMEXE)\

.PHONY: all
all:  raft

raft: $(APCOMFILES)
	$(MAKE) nodes
	$(MAKE) visitors
	$(MAKE) $(APCOMSOBJ)
	$(MAKE) $(APCOMOBJS)
	$(CXX) $(CXXFLAGS) $(CXXSTD) -o $(APCOMEXE) $(APCOMOBJS) \
	$(APCOMSOBJS) $(ASTNODEOBJS) $(VISITOROBJS) $(LIBS)

rafth: $(APHFILES)
	$(MAKE) $(APHSOBJ)
	$(MAKE) $(APHOBJS)
	$(CXX) $(CXXFLAGS) $(CXXSTD) -o $(APHEXE) $(APHOBJS) \
	rafth_parser.o rafth_lexer.o $(LIBS)

raft_parser: raft_parser.yy
	bison -d -v raft_parser.yy
	$(CXX) $(CXXSTD) $(CXXFLAGS) -Wno-deprecated-register -c -o raft_parser.o raft_parser.tab.cc

raft_lexer: raft_lexer.l
	flex --outfile=raft_lexer.yy.cc $<
	$(CXX) $(CXXSTD) $(CXXFLAGS) -Wno-deprecated-register -c raft_lexer.yy.cc -o raft_lexer.o

{'fraction_non_alphanumeric': 0.16236068895643363, 'fraction_numerical': 0.00303951367781155, 'mean_word_length': 3.3395604395604397, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2661967', 'n_tokens_mistral': 1857, 'n_tokens_neox': 1638, 'n_words': 348}