<commit_before>CC = clang
CCPP = clang++
CFLAGS = -c -g -Wall

SRCDIR = src
INCL = -I$(SRCDIR)

LLVMFLAGS = $(shell llvm-config --cflags)
LLVMLDFLAGS = $(shell llvm-config --ldflags)
LLVMLIBS = $(shell llvm-config --libs)

LIBS = -L. $(LLVMLIBS)

FLAGS = $(INCL) $(LLVMFLAGS)
LDFLAGS = $(LLVMLDFLAGS) $(LIBS)

CFILES = \
    cfl_ast.o \
    cfl_ast.error.o \
    cfl_program.o \
    cfl_parser.o \
    cfl_parser.error.o \
    cfl_parser.token.o \
    cfl_parser.basic.o \
    cfl_parser.operator.o \
    cfl_parser.derived.o \
    cfl_type.o \
    cfl_type.error.o \
    cfl_type.equation.o \
    cfl_type.generate.o \
    cfl_type.program.o \
    cfl_eval.o

all: libcfl.a cfl

libcfl.a: $(CFILES)
	ar cr libcfl.a $(CFILES)

cfl: $(SRCDIR)/cfl_main.cpp libcfl.a
	$(CCPP) $(CFLAGS) $(SRCDIR)/cfl_compiler.cpp $(FLAGS)
	$(CCPP) -o cfl $< cfl_compiler.o -lcfl $(LDFLAGS)

clean:
	rm -f *.o *.a

%.o: $(SRCDIR)/%.c
	$(CC) $(CFLAGS) $^ $(FLAGS)<commit_msg>Don't need llvm stuff for c code<commit_after>CC = clang
CCPP = clang++
CFLAGS = -c -g -Wall

SRCDIR = src
INCL = -I$(SRCDIR)

LLVMFLAGS = $(shell llvm-config --cxxflags)
LLVMLDFLAGS = $(shell llvm-config --ldflags)
LLVMLIBS = $(shell llvm-config --libs)

LIBS = -L. $(LLVMLIBS)
FLAGS = $(LLVMFLAGS)

LDFLAGS = $(LLVMLDFLAGS) $(LIBS)

CFILES = \
    cfl_ast.o \
    cfl_ast.error.o \
    cfl_program.o \
    cfl_parser.o \
    cfl_parser.error.o \
    cfl_parser.token.o \
    cfl_parser.basic.o \
    cfl_parser.operator.o \
    cfl_parser.derived.o \
    cfl_type.o \
    cfl_type.error.o \
    cfl_type.equation.o \
    cfl_type.generate.o \
    cfl_type.program.o \
    cfl_eval.o

all: libcfl.a cfl

libcfl.a: $(CFILES)
	ar cr libcfl.a $(CFILES)

cfl: $(SRCDIR)/cfl_main.cpp libcfl.a
	$(CCPP) $(CFLAGS) $(SRCDIR)/cfl_compiler.cpp $(FLAGS)
	$(CCPP) -o cfl $< cfl_compiler.o -lcfl $(LDFLAGS)

clean:
	rm -f *.o *.a

%.o: $(SRCDIR)/%.c
	$(CC) $(CFLAGS) $^ $(INCL)
{'fraction_non_alphanumeric': 0.17413972888425444, 'fraction_numerical': 0.0, 'mean_word_length': 2.7046332046332044, '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': '1472859', 'n_tokens_mistral': 893, 'n_tokens_neox': 887, 'n_words': 166}