<commit_before>CC?=gcc
ARCHFLAGS?=-m64
CFLAGS+=-Wall -Wextra -g -O2 $(ARCHFLAGS)

TEST_BIN=bin
IGNOTUM_LIB=../lib/ignotum.o
SRC_DIR=../src/

.PHONY: all clean

SOURCES := $(wildcard *c)
BINS := $(addprefix $(TEST_BIN)/, $(SOURCES:%.c=%))

all: $(BINS)


$(TEST_BIN)/%: %.c
	$(CC) $(CFLAGS) -o $@ $< -I$(SRC_DIR) $(IGNOTUM_LIB)

$(TEST_BIN)/test-ignotum_memread: $(TEST_BIN)/read_my_nops.o test-ignotum_memread.c
	$(CC) $(CFLAGS) -o $@ $^ -I$(SRC_DIR) $(IGNOTUM_LIB)

$(TEST_BIN)/test-ignotum_ptrace_read: $(TEST_BIN)/read_my_nops.o test-ignotum_ptrace_read.c
	$(CC) $(CFLAGS) -o $@ $^ -I$(SRC_DIR) $(IGNOTUM_LIB)

$(TEST_BIN)/read_my_nops.o:
	nasm -f elf64 read_my_nops.asm -o bin/read_my_nops.o


clean:
	rm -f $(BINS) $(TEST_BIN)/read_my_nops.o
<commit_msg>linking the library, instead of use ignotum.o<commit_after>CC?=gcc
ARCHFLAGS?=-m64
CFLAGS+=-Wall -Wextra -g -O2 $(ARCHFLAGS)

TEST_BIN=bin
#IGNOTUM_LIB=../lib/ignotum.o
LDFLAGS+=-L../lib/ -lignotum
SRC_DIR=../src/

.PHONY: all clean

SOURCES := $(wildcard *c)
BINS := $(addprefix $(TEST_BIN)/, $(SOURCES:%.c=%))

all: $(BINS)


$(TEST_BIN)/%: %.c
	$(CC) $(CFLAGS) -o $@ $< -I$(SRC_DIR)

$(TEST_BIN)/test-ignotum_memread: $(TEST_BIN)/read_my_nops.o test-ignotum_memread.c
	$(CC) $(CFLAGS) -o $@ $^ -I$(SRC_DIR) $(LDFLAGS)

$(TEST_BIN)/test-ignotum_ptrace_read: $(TEST_BIN)/read_my_nops.o test-ignotum_ptrace_read.c
	$(CC) $(CFLAGS) -o $@ $^ -I$(SRC_DIR) $(LDFLAGS)

$(TEST_BIN)/read_my_nops.o:
	nasm -f elf64 read_my_nops.asm -o bin/read_my_nops.o


clean:
	rm -f $(BINS) $(TEST_BIN)/read_my_nops.o

{'fraction_non_alphanumeric': 0.22093770070648683, 'fraction_numerical': 0.006422607578676943, 'mean_word_length': 4.749077490774908, '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': '3044415', 'n_tokens_mistral': 769, 'n_tokens_neox': 737, 'n_words': 121}