<commit_before>BUILDDIR := build
PRODUCT := deqn

SRCDIR := src

HDRS := $(wildcard $(SRCDIR)/*.h)

CSRCS := $(wildcard $(SRCDIR)/*.cc)
FSRCS += $(wildcard $(SRCDIR)/fortran/*.f90)

OBJS := $(CSRCS:$(SRCDIR)/%.cc=$(BUILDDIR)/%.o)
OBJS += $(FSRCS:$(SRCDIR)/fortran/%.f90=$(BUILDDIR)/%.o)

BINARY := $(BUILDDIR)/$(PRODUCT)

# gcc flags:
CXX := mpic++
CXXFLAGS_DEBUG := -g -DDEBUG -Wall -p
CXXFLAGS_OPT := -O3
CXXFLAGS_OPENMP := -fopenmp

LD := $(CXX)

# select optimized or debug
#CXXFLAGS := $(CXXFLAGS_OPT) $(CPPFLAGS)
CXXFLAGS := $(CXXFLAGS_OPT) $(CXXFLAGS_DEBUG) $(CPPFLAGS)

# add openmp flags (comment out for serial build)
#CXXFLAGS += $(CXXFLAGS_OPENMP)
#LDFLAGS += $(CXXFLAGS_OPENMP) 

all : $(BINARY)

$(BINARY) : $(OBJS)
	@echo linking $@
	$(maketargetdir)
	$(LD) $(LDFLAGS) -p -o $@ $^

$(BUILDDIR)/%.o : $(SRCDIR)/%.cc<commit_msg>Fixed up the makefile<commit_after>BUILDDIR := build
PRODUCT := deqn

SRCDIR := src

HDRS := $(wildcard $(SRCDIR)/*.h)

CSRCS := $(wildcard $(SRCDIR)/*.cc)
FSRCS += $(wildcard $(SRCDIR)/fortran/*.f90)

OBJS := $(CSRCS:$(SRCDIR)/%.cc=$(BUILDDIR)/%.o)
OBJS += $(FSRCS:$(SRCDIR)/fortran/%.f90=$(BUILDDIR)/%.o)

BINARY := $(BUILDDIR)/$(PRODUCT)

# gcc flags:
CXX := mpic++
CXXFLAGS_DEBUG := -g -DDEBUG -Wall
CXXFLAGS_OPT := -O3
CXXFLAGS_OPENMP := -fopenmp

LD := $(CXX)

# select optimized or debug
#CXXFLAGS := $(CXXFLAGS_OPT) $(CPPFLAGS)
CXXFLAGS := $(CXXFLAGS_OPT) $(CXXFLAGS_DEBUG) $(CPPFLAGS)

# add openmp flags (comment out for serial build)
#CXXFLAGS += $(CXXFLAGS_OPENMP)
#LDFLAGS += $(CXXFLAGS_OPENMP) 

all : $(BINARY)

$(BINARY) : $(OBJS)
	@echo linking $@
	$(maketargetdir)
	$(LD) $(LDFLAGS) -o $@ $^

$(BUILDDIR)/%.o : $(SRCDIR)/%.cc
{'fraction_non_alphanumeric': 0.22684085510688837, 'fraction_numerical': 0.0059382422802850355, 'mean_word_length': 4.891608391608392, 'pattern_counts': {'":': 0, '<': 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': '5172716', 'n_tokens_mistral': 727, 'n_tokens_neox': 702, 'n_words': 144}