<commit_before>include ../../common/makefile.gnu.config
include ../../common/makefile.debug

DBG=-g
OPT=-O2

CFLAGS+=-c -I../../common/user -I../../common/system -I../../common/core -I../../common/network -I../../common/phys_trans -I../../common/misc -I./ -fomit-frame-pointer -Wall -Werror -Wno-unknown-pragmas $(DBG) $(OPT) -MMD

LDFLAGS= -pthread

CFLAGS+=-I../../os-services-linux-ia32/include
LDFLAGS+= -los-services -L ../../os-services-linux-ia32

# Uncomment the below for the 64bit version of os services
# CFLAGS+=-I../../os-services-linux-intel64/include
# LDFLAGS+= -los-services -L ../../os-services-linux-intel64

TOOL_ROOTS = ../bin/pin_sim
SOURCES = pin_sim.cc mcp_runner.cc net_thread_runner.cc pin_lock.cc shared_mem.cc user_space_wrappers.cc
SRCOBJS = ../../common/user/*.o ../../common/core/*.o ../../common/network/*.o ../../common/phys_trans/*.o ../../common/misc/*.o ../../common/system/*.o
OBJECTS = $(SOURCES:%.cc=%.o)

TOOLS = $(TOOL_ROOTS:%=%$(PINTOOL_SUFFIX))

all: commonsubsystem tools
tools: $(TOOLS) $(SOURCES)


## build rules

%.o : %.cc
	$(CXX) $(CFLAGS) $(PIN_CXXFLAGS) -o $@ $<
<commit_msg>[build_system] Quick hack to make the bin dir every time. should be removed.<commit_after>include ../../common/makefile.gnu.config
include ../../common/makefile.debug

DBG=-g
OPT=-O2

CFLAGS+=-c -I../../common/user -I../../common/system -I../../common/core -I../../common/network -I../../common/phys_trans -I../../common/misc -I./ -fomit-frame-pointer -Wall -Werror -Wno-unknown-pragmas $(DBG) $(OPT) -MMD

LDFLAGS= -pthread

CFLAGS+=-I../../os-services-linux-ia32/include
LDFLAGS+= -los-services -L ../../os-services-linux-ia32

# Uncomment the below for the 64bit version of os services
# CFLAGS+=-I../../os-services-linux-intel64/include
# LDFLAGS+= -los-services -L ../../os-services-linux-intel64

TOOL_ROOTS = ../bin/pin_sim
SOURCES = pin_sim.cc mcp_runner.cc net_thread_runner.cc pin_lock.cc shared_mem.cc user_space_wrappers.cc
SRCOBJS = ../../common/user/*.o ../../common/core/*.o ../../common/network/*.o ../../common/phys_trans/*.o ../../common/misc/*.o ../../common/system/*.o
OBJECTS = $(SOURCES:%.cc=%.o)

TOOLS = $(TOOL_ROOTS:%=%$(PINTOOL_SUFFIX))

all: bindir commonsubsystem tools
tools: $(TOOLS) $(SOURCES)


## build rules
bindir:
	-mkdir -f ../bin

%.o : %.cc
	$(CXX) $(CFLAGS) $(PIN_CXXFLAGS) -o $@ $<

{'fraction_non_alphanumeric': 0.23829787234042554, 'fraction_numerical': 0.009361702127659575, 'mean_word_length': 2.791935483870968, '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': '1407358', 'n_tokens_mistral': 914, 'n_tokens_neox': 836, 'n_words': 171}