<commit_before>#############################
#                           #
# Makefile for GNU compiler #
#                           #
#############################

DEFINES  = -DDEBUG
# Dependency on Boost library
INCLUDES = -I/usr/include/boost
WARNINGS = -Wall
CODEOPT  = # -ftemplate-depth-30 -fpermissive -O3
DEBUG    = -g
CXXFLAGS = $(DEFINES) $(WARNINGS)
CPPFLAGS = $(INCLUDES) $(CODEOPT) $(DEBUG)
PROFILE  = # -pg
LDFLAGS  =
LIBS     = 
LD       = $(CXX)

.cpp.o:
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PROFILE) -c $< -o $@

SOURCES.cpp = \
	DPAG.cpp \
	DataSet.cpp \
	Instance.cpp \
	InstanceParser.cpp \
	Node.cpp \
	Options.cpp \
	StructuredDomain.cpp

SOURCES.h= \
	ActivationFunction.h \
	DPAG.h \
	DataSet.h \
	ErrorMinimizationProcedure.h \
	General.h \
	Instance.h \
	InstanceParser.h \
	Node.h \
	Options.h \
	RecurisveNN.h \
	StructuredDomain.h \
	require.h

OBJECTS = $(SOURCES.cpp:%.cpp=%.o)

TARGETS = generateParityGraphs

# main targets
all: ${TARGETS}

generateParityGraphs: generateParityGraphs.o
	$(LD) generateParityGraphs.o -o $@ $(PROFILE) $(LDFLAGS)

clean:
	rm -rf *.o *.bak *~ generateParityGraphs
	$(MAKE) clean -C test

# unit tests
## build unit tests into one single command
tests:
	$(MAKE) rnn_unit -C test

## run unit tests
check:
	$(MAKE) check -C test

depend:
	makedepend -- $(CXXFLAGS) $(CPPFLAGS) generateParityGraphs.cpp --<commit_msg>Rules to compile various targets.<commit_after>#############################
#                           #
# Makefile for GNU compiler #
#                           #
#############################

DEFINES  = -DDEBUG
# Dependency on Boost library
INCLUDES = -I/usr/include/boost
WARNINGS = -Wall
CODEOPT  = # -ftemplate-depth-30 -fpermissive -O3
DEBUG    = -g
CXXFLAGS = $(DEFINES) $(WARNINGS)
CPPFLAGS = $(INCLUDES) $(CODEOPT) $(DEBUG)
PROFILE  = # -pg
LDFLAGS  =
LIBS     = 
LD       = $(CXX)

.cpp.o:
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PROFILE) -c $< -o $@

SOURCES.cpp = \
	DPAG.cpp \
	DataSet.cpp \
	Instance.cpp \
	InstanceParser.cpp \
	Node.cpp \
	Options.cpp \
	StructuredDomain.cpp

SOURCES.h= \
	ActivationFunction.h \
	DPAG.h \
	DataSet.h \
	ErrorMinimizationProcedure.h \
	General.h \
	Instance.h \
	InstanceParser.h \
	Node.h \
	Options.h \
	RecurisveNN.h \
	StructuredDomain.h \
	require.h

OBJECTS = $(SOURCES.cpp:%.cpp=%.o)

TARGETS = rnnTrain generateParityGraphs

# main targets
all: ${TARGETS}

rnnTrain:  $(OBJECTS) rnnTrain.o
	$(LD) $(OBJECTS) rnnTrain.o $(LIBS) -o $@ $(PROFILE) $(LDFLAGS)

rnnTrain.o:  $(SOURCES.cpp) rnnTrain.cpp
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PROFILE) -c rnnTrain.cpp -o $@

generateParityGraphs: generateParityGraphs.o
	$(LD) generateParityGraphs.o -o $@ $(PROFILE) $(LDFLAGS)

clean:
	rm -rf *.o *.bak *~ $(TARGETS)
	$(MAKE) clean -C test

# unit tests
## build unit tests into one single command
tests: ${OBJECTS}
	$(MAKE) rnn_unit -C test

## run unit tests
check:
	$(MAKE) check -C test

depend:
	makedepend -- $(CXXFLAGS) $(CPPFLAGS) rnnTrain.cpp generateParityGraphs.cpp --
{'fraction_non_alphanumeric': 0.18272757585861954, 'fraction_numerical': 0.0020006668889629878, 'mean_word_length': 3.037685060565276, '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': '991668', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1121, 'n_words': 255}