<commit_before>CC=gcc
CCP=g++
CFLAGS= -Wall -O3 -g -I../../include/ -I../../libmeasure/mic_intel_knc/ -I../../libmeasure/fpga_maxeler_max3a/ -I../../libmeasure/gpu_nvidia_tesla_kepler/ -I../../libmeasure/sys_dell_idrac7/ -I../../libmeasure/cpu_intel_xeon_sandy/ -I../ -I../papi/src/
LDFLAGS= -L../ -lapapi



all:
	$(CC) $(CFLAGS) -c ms_common.c -o ms_common.o
	ar rcs libms_common.a ms_common.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_common.c -o ms_common.o -lapapi
	$(CCP) $(CFLAGS) $(LFLAGS) -c -fPIC list.cpp -o list.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_cpu_intel_xeon_sandy.c -o ms_cpu_intel_xeon_sandy.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_fpga_maxeler_max3a.c -o ms_fpga_maxeler_max3a.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_gpu_nvidia_tesla_kepler.c -o ms_gpu_nvidia_tesla_kepler.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_mic_intel_knc.c -o ms_mic_intel_knc.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_sys_dell_idrac7.c -o ms_sys_dell_idrac7.o
	#$(CC) -fPIC -shared -Wl,-soname,libms_common.so.1 -Wl,unresolved-symbols,ignore-in-shared-libs -o libms_common.so ms_common.o -lapapi
	$(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,libms_common.so.1 -o libms_common.so ms_common.o list.o ms_cpu_intel_xeon_sandy.o ms_fpga_maxeler_max3a.o ms_gpu_nvidia_tesla_kepler.o ms_mic_intel_knc.o ms_sys_dell_idrac7.o


%: %.cpp
	$(CC) $(CFLAGS) $(LIBDIRS) -o $@ $< $(LIBS)

%: %.c
	$(CC) $(CFLAGS) $(LIBDIRS) -o $@ $< $(LIBS)
<commit_msg>Fix papi dependency in libmeasure Makfile<commit_after>CC=gcc
CCP=g++
CFLAGS= -Wall -O3 -g -I../../include/ -I../../libmeasure/mic_intel_knc/ -I../../libmeasure/fpga_maxeler_max3a/ -I../../libmeasure/gpu_nvidia_tesla_kepler/ -I../../libmeasure/sys_dell_idrac7/ -I../../libmeasure/cpu_intel_xeon_sandy/ -I../ -I../papi/src/
LDFLAGS= -L../ -lapapi



all:
	#$(CC) $(CFLAGS) -c ms_common.c -o ms_common.o
	#ar rcs libms_common.a ms_common.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_common.c -o ms_common.o
	$(CCP) $(CFLAGS) $(LFLAGS) -c -fPIC list.cpp -o list.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_cpu_intel_xeon_sandy.c -o ms_cpu_intel_xeon_sandy.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_fpga_maxeler_max3a.c -o ms_fpga_maxeler_max3a.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_gpu_nvidia_tesla_kepler.c -o ms_gpu_nvidia_tesla_kepler.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_mic_intel_knc.c -o ms_mic_intel_knc.o
	$(CC) $(CFLAGS) $(LFLAGS) -c -fPIC ms_sys_dell_idrac7.c -o ms_sys_dell_idrac7.o
	#$(CC) -fPIC -shared -Wl,-soname,libms_common.so.1 -Wl,unresolved-symbols,ignore-in-shared-libs -o libms_common.so ms_common.o -lapapi
	$(CC) -Wall -fPIC -shared -Wl,-soname,libms_common.so.1 -o libms_common.so ms_common.o list.o ms_cpu_intel_xeon_sandy.o ms_fpga_maxeler_max3a.o ms_gpu_nvidia_tesla_kepler.o ms_mic_intel_knc.o ms_sys_dell_idrac7.o -L../ -lapapi


%: %.cpp
	$(CC) $(CFLAGS) $(LIBDIRS) -o $@ $< $(LIBS)

%: %.c
	$(CC) $(CFLAGS) $(LIBDIRS) -o $@ $< $(LIBS)

{'fraction_non_alphanumeric': 0.19481865284974093, 'fraction_numerical': 0.0075993091537132984, 'mean_word_length': 3.859060402684564, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2727142', 'n_tokens_mistral': 1418, 'n_tokens_neox': 1391, 'n_words': 246}