<commit_before>EXT =

all: converter$(EXT) compilewrap$(EXT)

OBJS = convert.o

CC=/opt/local/bin/clang-mp-3.2
LD=$(CC)
CFLAGS=-I/opt/local/libexec/llvm-3.2/include -g
LDFLAGS=-L/opt/local/libexec/llvm-3.2/lib -g
LIBS=-lclang

clean:
	rm -f converter$(EXT) compilewrap$(EXT) $(OBJS) compilewrap.o
	rm -f unit.c.c unit2.c.c

test1: converter$(EXT)
	$(CC) -E unit.c -o unit.prev.c
	./converter unit.prev.c unit.post.c
	diff -u unit.{prev,post}.c

test2: converter$(EXT)
	$(CC) -E unit2.c -o unit2.prev.c
	./converter unit2.prev.c unit2.post.c
	diff -u unit2.{prev,post}.c

test3: converter$(EXT)
	$(CC) $(CFLAGS) -E -o convert.prev.c convert.c
	./converter convert.prev.c convert.post.c
	diff -u convert.{prev,post}.c

converter$(EXT): $(OBJS)
	$(CC) -o $@ $< $(LDFLAGS) $(LIBS)

compilewrap$(EXT): compilewrap.o
	$(CC) -o $@ $< $(LDFLAGS)

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

compilewrap.o: compilewrap.c
	$(CC) $(CFLAGS) -o $@ -c $<<commit_msg>Generalize the makefile rule for building object files<commit_after>EXT =

all: converter$(EXT) compilewrap$(EXT)

OBJS = convert.o

CC=/opt/local/bin/clang-mp-3.2
LD=$(CC)
CFLAGS=-I/opt/local/libexec/llvm-3.2/include -g
LDFLAGS=-L/opt/local/libexec/llvm-3.2/lib -g
LIBS=-lclang

clean:
	rm -f converter$(EXT) compilewrap$(EXT) $(OBJS) compilewrap.o
	rm -f unit.c.c unit2.c.c

test1: converter$(EXT)
	$(CC) -E unit.c -o unit.prev.c
	./converter unit.prev.c unit.post.c
	diff -u unit.{prev,post}.c

test2: converter$(EXT)
	$(CC) -E unit2.c -o unit2.prev.c
	./converter unit2.prev.c unit2.post.c
	diff -u unit2.{prev,post}.c

test3: converter$(EXT)
	$(CC) $(CFLAGS) -E -o convert.prev.c convert.c
	./converter convert.prev.c convert.post.c
	diff -u convert.{prev,post}.c

converter$(EXT): $(OBJS)
	$(CC) -o $@ $< $(LDFLAGS) $(LIBS)

compilewrap$(EXT): compilewrap.o
	$(CC) -o $@ $< $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<
{'fraction_non_alphanumeric': 0.21133474576271186, 'fraction_numerical': 0.015889830508474576, 'mean_word_length': 3.5849514563106797, 'pattern_counts': {'":': 0, '<': 10, '<?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': '4947955', 'n_tokens_mistral': 847, 'n_tokens_neox': 821, 'n_words': 175}