<commit_before>CC=gcc
DEBUG=1
ORIGFLAGS= -c -Wall -std=c99

ifeq ($(DEBUG),1)
	CFLAGS=$(ORIGFLAGS) -g
else
	CFLAGS=$(ORIGFLAGS) -O3
endif

LIB_HEADERS=aes.h sha256.h rand.h scrypt.h
LIB_OBJECTS=aes.o sha256.o aes_modes.o scrypt.o rand.o

TEST_OBJECTS=$(LIB_OBJECTS) aes_test.o sha256_test.o aes_modes_test.o test_suite.o scrypt_test.o

.PHONY: clean cleanall remake remaketest test all lib install

all: lib

lib: bin $(LIB_OBJECTS)
	cp $(LIB_HEADERS) bin/ibcrypt/
	ar -rs bin/libibcrypt.a $(LIB_OBJECTS) 

test: bin $(TEST_OBJECTS)
	gcc $(TEST_OBJECTS) -o bin/test

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

bin:
	@mkdir bin
	@mkdir bin/ibcrypt
	
clean:
	rm -rf *.o 
	
cleanall: clean
	rm -rf bin<commit_msg>added flto option<commit_after>CC=gcc
DEBUG=1
ORIGFLAGS= -c -Wall -std=c99

ifeq ($(DEBUG),1)
	CFLAGS=$(ORIGFLAGS) -g
	LFLAGS=
else
	CFLAGS=$(ORIGFLAGS) -O3 -flto
	LFLAGS=-flto
endif

LIB_HEADERS=aes.h sha256.h rand.h scrypt.h
LIB_OBJECTS=aes.o sha256.o aes_modes.o scrypt.o rand.o

TEST_OBJECTS=$(LIB_OBJECTS) aes_test.o sha256_test.o aes_modes_test.o test_suite.o scrypt_test.o

.PHONY: clean cleanall remake remaketest test all lib install

all: lib

lib: bin $(LIB_OBJECTS)
	cp $(LIB_HEADERS) bin/ibcrypt/
	ar -rs bin/libibcrypt.a $(LIB_OBJECTS) 

test: bin $(TEST_OBJECTS)
	gcc $(LFLAGS) $(TEST_OBJECTS) -o bin/test

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

bin:
	@mkdir bin
	@mkdir bin/ibcrypt
	
clean:
	rm -rf *.o 
	
cleanall: clean
	rm -rf bin
{'fraction_non_alphanumeric': 0.1392931392931393, 'fraction_numerical': 0.019404019404019403, 'mean_word_length': 4.1387900355871885, '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': '3444536', 'n_tokens_mistral': 691, 'n_tokens_neox': 636, 'n_words': 155}