<commit_before>PLATFORM := $(shell uname)
PLATFORM_VERSION := $(shell uname -r| awk -F 'el' '{printf("el%d", substr($$2,1,1))}')

CXX := g++
#ifeq ($(PLATFORM_VERSION),el6)
#GCC472_PATH=/home/s/gcc-4.9.2
#CXX := env LD_LIBRARY_PATH=$(GCC472_PATH)/lib $(GCC472_PATH)/bin/g++
#else
#CXX := g++
#endif

CURRENT_DIR= $(shell pwd)
ROOT_DIR=$(shell cd ./../../.. && pwd)
PREFIX=$(CURRENT_DIR)/../install

CPPFLAGS= -g -c -fPIC \
		  -D_DEBUG -D_USE_GTEST \
		  -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings \
		  -Wsign-compare -Winvalid-pch -fms-extensions -Wall \
		  -MMD -Woverloaded-virtual -Wsign-promo -fno-gnu-keywords -std=c++11 \
		  -I ../include\
		  -I .. \
		  -I ../.. \
		  -I $(ROOT_DIR) \
		  -I $(ROOT_DIR)/3rdparty

RTFLAGS := \
    -Wl,-rpath=. \
    -Wl,-rpath=$(GCC472_PATH)/lib64 \
    -Wl,-rpath=$(ROOT_DIR)/evpp

LDFLAGS= $(RTFLAGS) \
		 -L $(ROOT_DIR)/evpp \
		 -L $(ROOT_DIR)/3rdparty/libhashkit \
		 -L /home/muyuwei/3rd/lib \
		 -L .. \
		 -lpthread -levmc \
		 -levpp -leventd -lglog -lhashkit

DIRNAME=$(shell basename `pwd`)

SRCS := $(wildcard *.cc)
OBJS := $(patsubst %.cc, %.o, $(SRCS))
DEPS := $(patsubst %.o, %.d, $(OBJS))
TARGET := test_evmc

all : $(TARGET) test

check : $(TARGET)
	./$^

$(TARGET) : $(OBJS) ../libevmc.a $(ROOT_DIR)/evpp/libevpp.a
	$(CXX) $(OBJS) $(LDFLAGS) -o $@

-include $(DEPS)

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

clean:
	rm -rf *.o *.d $(OBJS) $(DEPS) $(TARGET) *.tmp

test_var :
	echo ${CURRENT_DIR}
	echo ${ROOT_DIR}

.PHONY : test test_var
<commit_msg>-leventd to -levent<commit_after>PLATFORM := $(shell uname)
PLATFORM_VERSION := $(shell uname -r| awk -F 'el' '{printf("el%d", substr($$2,1,1))}')

CXX := g++
#ifeq ($(PLATFORM_VERSION),el6)
#GCC472_PATH=/home/s/gcc-4.9.2
#CXX := env LD_LIBRARY_PATH=$(GCC472_PATH)/lib $(GCC472_PATH)/bin/g++
#else
#CXX := g++
#endif

CURRENT_DIR= $(shell pwd)
ROOT_DIR=$(shell cd ./../../.. && pwd)
PREFIX=$(CURRENT_DIR)/../install

CPPFLAGS= -g -c -fPIC \
		  -D_DEBUG -D_USE_GTEST \
		  -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings \
		  -Wsign-compare -Winvalid-pch -fms-extensions -Wall \
		  -MMD -Woverloaded-virtual -Wsign-promo -fno-gnu-keywords -std=c++11 \
		  -I ../include\
		  -I .. \
		  -I ../.. \
		  -I $(ROOT_DIR) \
		  -I $(ROOT_DIR)/3rdparty

RTFLAGS := \
    -Wl,-rpath=. \
    -Wl,-rpath=$(GCC472_PATH)/lib64 \
    -Wl,-rpath=$(ROOT_DIR)/evpp

LDFLAGS= $(RTFLAGS) \
		 -L $(ROOT_DIR)/evpp \
		 -L $(ROOT_DIR)/3rdparty/libhashkit \
		 -L /home/muyuwei/3rd/lib \
		 -L .. \
		 -lpthread -levmc \
		 -levpp -levent -lglog -lhashkit

DIRNAME=$(shell basename `pwd`)

SRCS := $(wildcard *.cc)
OBJS := $(patsubst %.cc, %.o, $(SRCS))
DEPS := $(patsubst %.o, %.d, $(OBJS))
TARGET := test_evmc

all : $(TARGET) test

check : $(TARGET)
	./$^

$(TARGET) : $(OBJS) ../libevmc.a $(ROOT_DIR)/evpp/libevpp.a
	$(CXX) $(OBJS) $(LDFLAGS) -o $@

-include $(DEPS)

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

clean:
	rm -rf *.o *.d $(OBJS) $(DEPS) $(TARGET) *.tmp

test_var :
	echo ${CURRENT_DIR}
	echo ${ROOT_DIR}

.PHONY : test test_var

{'fraction_non_alphanumeric': 0.2352557836428804, 'fraction_numerical': 0.016943629846855653, 'mean_word_length': 2.7948084054388134, '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': '6238097', 'n_tokens_mistral': 1469, 'n_tokens_neox': 1331, 'n_words': 270}