<commit_before>CFLAGS=-g

all: rapl_lib_shared rapl_lib_static power_gadget_static

rapl_lib_shared: 
	gcc $(CFLAGS) -fpic -c msr.c cpuid.c rapl.c 
	gcc $(CFLAGS) -shared -o librapl.so msr.o cpuid.o rapl.o

rapl_lib_static: 
	gcc $(CFLAGS) -c msr.c cpuid.c rapl.c 
	ar rcs librapl.a msr.o cpuid.o rapl.o

power_gadget_static: 
	gcc $(CFLAGS) power_gadget.c -I. -o power_gadget -L. -lm  ./librapl.a

power_gadget: 
	gcc $(CFLAGS) power_gadget.c -I. -o power_gadget -L. -lm -lrapl 

gprof: CFLAGS = -pg
gprof: all<commit_msg>changed linking order of libm to fix undefined reference to log<commit_after>CFLAGS=-g

all: rapl_lib_shared rapl_lib_static power_gadget_static

rapl_lib_shared: 
	gcc $(CFLAGS) -fpic -c msr.c cpuid.c rapl.c 
	gcc $(CFLAGS) -shared -o librapl.so msr.o cpuid.o rapl.o

rapl_lib_static: 
	gcc $(CFLAGS) -c msr.c cpuid.c rapl.c 
	ar rcs librapl.a msr.o cpuid.o rapl.o

power_gadget_static: 
	gcc $(CFLAGS) power_gadget.c -I. -o power_gadget -L. ./librapl.a -lm

power_gadget: 
	gcc $(CFLAGS) power_gadget.c -I. -o power_gadget -L. -lrapl -lm

gprof: CFLAGS = -pg
gprof: all
{'fraction_non_alphanumeric': 0.1206581352833638, 'fraction_numerical': 0.0, 'mean_word_length': 3.4693877551020407, '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': '5650555', 'n_tokens_mistral': 521, 'n_tokens_neox': 510, 'n_words': 127}