<commit_before>CROSS = 
CC = $(CROSS)gcc
STRIP = $(CROSS)strip
CFLAGS =
LDFLAGS =
GIT_VERSION = $(shell ./gitver.sh)
CFLAGS_ = -std=c99 -pedantic -DGIT_VERSION="\"$(GIT_VERSION)\"" $(CFLAGS) 
LDFLAGS_ = $(LDFLAGS)
OBJDIR = obj
OUT = minnow

.PHONY: default release debug profile strip clean
default: release

release: CFLAGS_ += -O2 -g3
release: $(OUT)

debug: CFLAGS_ += -O0 -g3
debug: $(OUT)

profile: CFLAGS_ += -O0 -g3 -pg
profile: LDFLAGS_ += -pg
profile: $(OUT)

strip: release
	$(STRIP) $(OUT)

SRC = $(wildcard src/*.c)
HDR = $(wildcard src/*.h)
OBJ = $(patsubst src/%.c,$(OBJDIR)/%.o,$(SRC))

$(OBJDIR)/%.o: src/%.c $(HDR)
	@mkdir -p $(OBJDIR)
	$(CC) -o $@ $(CFLAGS_) -c $<

$(OUT): $(OBJ)
	$(CC) -o $(OUT) $(OBJ) $(LDFLAGS_)

clean:
	@rm -rf $(OUT) $(OBJDIR)<commit_msg>Makefile tweaks. Use -O3 for the default release build, -O2 for the profile build. Also set variables OPT and DBG for targets rather than directly setting them in CFLAGS_.<commit_after>CROSS = 
CC = $(CROSS)gcc
STRIP = $(CROSS)strip
CFLAGS =
LDFLAGS =
GIT_VERSION = $(shell ./gitver.sh)
CFLAGS_ = -std=c99 -pedantic -DGIT_VERSION="\"$(GIT_VERSION)\"" $(CFLAGS) 
LDFLAGS_ = $(LDFLAGS)
OBJDIR = obj
OUT = minnow

.PHONY: default release debug profile strip clean
default: release

release: OPT = 3
release: DBG = 0
release: $(OUT)

debug: OPT = 0
debug: DBG = 3
debug: $(OUT)

profile: OPT = 1
profile: DBG = 3
profile: CFLAGS_ += -pg
profile: LDFLAGS_ += -pg
profile: $(OUT)

strip: release
	$(STRIP) $(OUT)

SRC = $(wildcard src/*.c)
HDR = $(wildcard src/*.h)
OBJ = $(patsubst src/%.c,$(OBJDIR)/%.o,$(SRC))

$(OBJDIR)/%.o: src/%.c $(HDR)
	@mkdir -p $(OBJDIR)
	$(CC) -o $@ $(CFLAGS_) -O$(OPT) -g$(DBG) -c $<

$(OUT): $(OBJ)
	$(CC) -o $(OUT) $(OBJ) $(LDFLAGS_)

clean:
	@rm -rf $(OUT) $(OBJDIR)
{'fraction_non_alphanumeric': 0.208803611738149, 'fraction_numerical': 0.010158013544018058, 'mean_word_length': 4.008474576271187, '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': '3148906', 'n_tokens_mistral': 774, 'n_tokens_neox': 726, 'n_words': 211}