<commit_before>CC = clang
LD = ld

CCFLAGS = \
	-Wall -Wextra -Weverything -std=c99 -pedantic -fPIC \
	-DIRE_BUILD_SHARED \
	-O0 -g

LDFLAGS = \
	-macosx_version_min 10.7 \
	-lc

INCLUDE_DIR = include
SOURCE_DIR = src
BUILD_DIR = .
OBJECT_DIR = $(BUILD_DIR)

OBJECT_FILES = \
	$(OBJECT_DIR)/data.o \
	$(OBJECT_DIR)/binary.o \
	$(OBJECT_DIR)/cpu.o


.PHONY: all clean


all: $(BUILD_DIR)/libire.dylib $(BUILD_DIR)/ire


clean:
	rm $(BUILD_DIR)/libire.dylib
	rm $(OBJECT_DIR)/ire.o $(BUILD_DIR)/ire
	rm $(OBJECT_FILES)


$(BUILD_DIR)/libire.dylib: $(OBJECT_FILES)
	$(LD) $(LDFLAGS) -dylib -o $@ $+


$(BUILD_DIR)/ire: $(BUILD_DIR)/libire.dylib $(OBJECT_DIR)/ire.o
	$(LD) $(LDFLAGS) -execute -L$(BUILD_DIR) -lire -o $@ /usr/lib/crt1.o $(OBJECT_DIR)/ire.o


$(OBJECT_DIR)/ire.o: $(SOURCE_DIR)/ire.c
	$(CC) $(CCFLAGS) -I$(INCLUDE_DIR) -o $@ -c $+


$(OBJECT_DIR)/data.o: $(SOURCE_DIR)/data.c
	$(CC) $(CCFLAGS) -I$(INCLUDE_DIR) -o $@ -c $+

<commit_msg>added code.o to Makefile<commit_after>CC = clang
LD = ld

CCFLAGS = \
	-Wall -Wextra -Weverything -std=c99 -pedantic -fPIC \
	-DIRE_BUILD_SHARED \
	-O0 -g

LDFLAGS = \
	-macosx_version_min 10.7 \
	-lc

INCLUDE_DIR = include
SOURCE_DIR = src
BUILD_DIR = .
OBJECT_DIR = $(BUILD_DIR)

OBJECT_FILES = \
	$(OBJECT_DIR)/code.o \
	$(OBJECT_DIR)/data.o \
	$(OBJECT_DIR)/binary.o \
	$(OBJECT_DIR)/cpu.o


.PHONY: all clean


all: $(BUILD_DIR)/libire.dylib $(BUILD_DIR)/ire


clean:
	rm $(BUILD_DIR)/libire.dylib
	rm $(OBJECT_DIR)/ire.o $(BUILD_DIR)/ire
	rm $(OBJECT_FILES)


$(BUILD_DIR)/libire.dylib: $(OBJECT_FILES)
	$(LD) $(LDFLAGS) -dylib -o $@ $+


$(BUILD_DIR)/ire: $(BUILD_DIR)/libire.dylib $(OBJECT_DIR)/ire.o
	$(LD) $(LDFLAGS) -execute -L$(BUILD_DIR) -lire -o $@ /usr/lib/crt1.o $(OBJECT_DIR)/ire.o


$(OBJECT_DIR)/ire.o: $(SOURCE_DIR)/ire.c
	$(CC) $(CCFLAGS) -I$(INCLUDE_DIR) -o $@ -c $+


$(OBJECT_DIR)/code.o: $(SOURCE_DIR)/code.c
	$(CC) $(CCFLAGS) -I$(INCLUDE_DIR) -o $@ -c $+


$(OBJECT_DIR)/data.o: $(SOURCE_DIR)/data.c
	$(CC) $(CCFLAGS) -I$(INCLUDE_DIR) -o $@ -c $+


{'fraction_non_alphanumeric': 0.21078673923800098, 'fraction_numerical': 0.006927263730826323, 'mean_word_length': 3.6589861751152073, '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': '4271262', 'n_tokens_mistral': 958, 'n_tokens_neox': 899, 'n_words': 159}