<commit_before>ZMQ_PATH = ../external/zeromq-install
CZMQ_PATH = ../external/czmq-install
MSGPACK_PATH = ../external/msgpack-install

CPPFLAGS = \
 -I$(ZMQ_PATH)/include \
 -I$(CZMQ_PATH)/include \
 -I$(MSGPACK_PATH)/include

LDFLAGS = \
 -L$(ZMQ_PATH)/lib \
 -L$(CZMQ_PATH)/lib \
 -L$(MSGPACK_PATH)/lib

LIBS = -lvirt -lrt -lzmq -lmsgpack

all: basic_monitor basic_receiver eat_memory

%.o: %.cc
	g++ $(CPPFLAGS) $(CFLAGS) -c $< -o $@

basic_monitor: common.o DomainStatTracker.o timespec_utils.o basic_monitor.o
	g++ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $? $(LIBS)

basic_receiver: common.o basic_receiver.o
	g++ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $? $(LIBS)

#basic_monitor: DomainStatTracker.cc DomainStatTracker.hh timespec_utils.cc timespec_utils.hh basic_monitor.cc
#	g++ $(CPPFLAGS) $(LDFLAGS) -o basic_monitor DomainStatTracker.cc timespec_utils.cc basic_monitor.cc $(LIBS)
#
#basic_receiver: basic_receiver.cc
#	g++ $(CPPFLAGS) $(LDFLAGS) -o basic_receiver basic_receiver.cc $(LIBS)

eat_memory: eat_memory.c
	gcc -static -o eat_memory eat_memory.c

clean:<commit_msg>made libvirt link only with monitor app<commit_after>ZMQ_PATH = ../external/zeromq-install
CZMQ_PATH = ../external/czmq-install
MSGPACK_PATH = ../external/msgpack-install

CPPFLAGS = \
 -I$(ZMQ_PATH)/include \
 -I$(CZMQ_PATH)/include \
 -I$(MSGPACK_PATH)/include

LDFLAGS = \
 -L$(ZMQ_PATH)/lib \
 -L$(CZMQ_PATH)/lib \
 -L$(MSGPACK_PATH)/lib

COMMON_LIBS = -lrt -lzmq -lmsgpack
MONITOR_LIBS = $(COMMON_LIBS) -lvirt
RECEIVER_LIBS = $(COMMON_LIBS)

all: basic_monitor basic_receiver eat_memory

%.o: %.cc
	g++ $(CPPFLAGS) $(CFLAGS) -c $< -o $@

basic_monitor: common.o DomainStatTracker.o timespec_utils.o basic_monitor.o
	g++ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $? $(MONITOR_LIBS)

basic_receiver: common.o basic_receiver.o
	g++ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $? $(RECEIVER_LIBS)

eat_memory: eat_memory.c
	gcc -static -o eat_memory eat_memory.c

clean:
{'fraction_non_alphanumeric': 0.16486902927580893, 'fraction_numerical': 0.0, 'mean_word_length': 4.6138328530259365, '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': '3042526', 'n_tokens_mistral': 810, 'n_tokens_neox': 780, 'n_words': 149}