<commit_before>###### -*- mode: makefile -*-

BINs := yealink-cfgcrack yealink-keycrack yealink-keyderiv
ENCs := $(patsubst %.cfg,%.enc,$(wildcard test/*.cfg))
CFLAGS := -O3 -Wall

.PHONY: all clean

all: $(BINs) $(ENCs)

clean:
	rm -f $(BINs)

yealink-cfgcrack: yealink-cfgcrack.c Makefile
	gcc $(CFLAGS) -lssl -lcrypto -o $@ $<

%: %.c Makefile
	gcc $(CFLAGS) -o $@ $<

test/test-keydiff.conf: Makefile
	printf '%s\n' '2000000' > $@

test/test-keytime.conf: test/test-keydiff.conf Makefile
	printf '%s-%s\n' $$(date -u +%s) $$(cat test/test-keydiff.conf) | bc > $@

test/test-key.conf: test/test-keytime.conf yealink-keyderiv Makefile
	./yealink-keyderiv $(shell cat test/test-keytime.conf) > $@

test/%.enc: test/%.cfg test/test-key.conf Makefile
	./test/enc.sh $(shell cat test/test-key.conf) < $< > $@
<commit_msg>Compile against the gnu99 standard<commit_after>###### -*- mode: makefile -*-

BINs := yealink-cfgcrack yealink-keycrack yealink-keyderiv
ENCs := $(patsubst %.cfg,%.enc,$(wildcard test/*.cfg))
CFLAGS := -std=gnu99 -O3 -Wall

.PHONY: all clean

all: $(BINs) $(ENCs)

clean:
	rm -f $(BINs)

yealink-cfgcrack: yealink-cfgcrack.c Makefile
	gcc $(CFLAGS) -lssl -lcrypto -o $@ $<

%: %.c Makefile
	gcc $(CFLAGS) -o $@ $<

test/test-keydiff.conf: Makefile
	printf '%s\n' '2000000' > $@

test/test-keytime.conf: test/test-keydiff.conf Makefile
	printf '%s-%s\n' $$(date -u +%s) $$(cat test/test-keydiff.conf) | bc > $@

test/test-key.conf: test/test-keytime.conf yealink-keyderiv Makefile
	./yealink-keyderiv $(shell cat test/test-keytime.conf) > $@

test/%.enc: test/%.cfg test/test-key.conf Makefile
	./test/enc.sh $(shell cat test/test-key.conf) < $< > $@

{'fraction_non_alphanumeric': 0.20718562874251498, 'fraction_numerical': 0.011976047904191617, 'mean_word_length': 3.73371104815864, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5224645', 'n_tokens_mistral': 735, 'n_tokens_neox': 691, 'n_words': 143}