<commit_before># export V8_VERSION=xxx
# export V8_PREFIX=xxx

VERSION     = 1.0
CC          = g++
INC         = -I$(V8_PREFIX)/include
LIBS        = -L$(V8_PREFIX)/lib64 -l:libv8.so.$(V8_VERSION)

CFLAGS      = -fpic -g -Wall
TARGET      = v8monoctx
TARGET_LIB  = lib$(TARGET).$(VERSION).so
TARGET_DIR  = /usr/local/lib64
INCLUDE_DIR = /usr/local/include
DESTDIR     =
 
all: $(TARGET)

$(TARGET):
	$(CC) -c $(CFLAGS) $(INC) $(TARGET).cpp
	$(CC) -shared $(LIBS) -o $(TARGET_LIB) $(TARGET).o

install:
	install -m 0755 -D -T $(TARGET_LIB) $(DESTDIR)$(TARGET_DIR)/$(TARGET_LIB)
	install -m 0644 -D -T $(TARGET).h $(DESTDIR)$(INCLUDE_DIR)/$(TARGET).h
	ln -fs $(TARGET_LIB) $(DESTDIR)$(TARGET_DIR)/lib$(TARGET).so<commit_msg>linker fixed<commit_after># export V8_VERSION=xxx
# export V8_PREFIX=xxx

VERSION     = 1.0
CC          = g++
INC         = -I$(V8_PREFIX)/include
LIBS        = -L$(V8_PREFIX)/lib64 -l:libv8.so.$(V8_VERSION)

CFLAGS      = -fpic -g -Wall
TARGET      = v8monoctx
TARGET_LIB  = lib$(TARGET).$(VERSION).so
TARGET_DIR  = /usr/local/lib64
INCLUDE_DIR = /usr/local/include
DESTDIR     =
 
all: $(TARGET)

$(TARGET):
	$(CC) -c $(CFLAGS) $(INC) $(TARGET).cpp
	$(CC) -shared -Wl,-soname,$(TARGET_LIB) $(LIBS) -o $(TARGET_LIB) $(TARGET).o

install:
	install -m 0755 -D -T $(TARGET_LIB) $(DESTDIR)$(TARGET_DIR)/$(TARGET_LIB)
	install -m 0644 -D -T $(TARGET).h $(DESTDIR)$(INCLUDE_DIR)/$(TARGET).h
	ln -fs $(TARGET_LIB) $(DESTDIR)$(TARGET_DIR)/lib$(TARGET).so
{'fraction_non_alphanumeric': 0.19673247106875424, 'fraction_numerical': 0.02859087814840027, 'mean_word_length': 3.4680851063829787, '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': '6823847', 'n_tokens_mistral': 625, 'n_tokens_neox': 592, 'n_words': 121}