<commit_before>CC = gcc
CCOPTS = -Wall -c -g -ggdb
LINKOPTS = -Wall -g -ggdb -lpthread

EXEC=scheduler
OBJECTS=scheduler.o sched_impl.o list.o dummy_impl.o lab4_tests.o testrunner.o

all: $(EXEC)

$(EXEC): $(OBJECTS)
	$(CC) $(LINKOPTS) -o $@ $^

#%.o:%.c
#	$(CC) $(CCOPTS) -o $@ $^

scheduler.o: scheduler.c scheduler.h sched_impl.h
	$(CC) $(CCOPTS) -o $@ scheduler.c

sched_impl.o: sched_impl.c scheduler.h sched_impl.h
	$(CC) $(CCOPTS) -o $@ sched_impl.c

list.o: list.c list.h
	$(CC) $(CCOPTS) -o $@ list.c

dummy_impl.o: dummy_impl.c scheduler.h
	$(CC) $(CCOPTS) -o $@ dummy_impl.c

lab4_tests.o: lab4_tests.c list.h scheduler.h testrunner.h
	$(CC) $(CCOPTS) -o $@ lab4_tests.c

testrunner.o: testrunner.c testrunner.h
	$(CC) $(CCOPTS) -o $@ testrunner.c

test: scheduler
	- ./scheduler -test -f10 fifo
	- ./scheduler -test -f10 rr
	- killall scheduler

clean:
	- $(RM) $(EXEC)
	- $(RM) $(OBJECTS)
	- $(RM) *~
	- $(RM) core.*
	- $(RM) lab4.in lab4.out lab4.err<commit_msg>Updated Makefile to build documentation (make doc)<commit_after>CC = gcc
CCOPTS = -Wall -c -g -ggdb
LINKOPTS = -Wall -g -ggdb -lpthread

TEX = pdflatex
README = README.tex

EXEC=scheduler
OBJECTS=scheduler.o sched_impl.o list.o dummy_impl.o lab4_tests.o testrunner.o

all: $(EXEC)

$(EXEC): $(OBJECTS)
	$(CC) $(LINKOPTS) -o $@ $^

#%.o:%.c
#	$(CC) $(CCOPTS) -o $@ $^

scheduler.o: scheduler.c scheduler.h sched_impl.h
	$(CC) $(CCOPTS) -o $@ scheduler.c

sched_impl.o: sched_impl.c scheduler.h sched_impl.h
	$(CC) $(CCOPTS) -o $@ sched_impl.c

list.o: list.c list.h
	$(CC) $(CCOPTS) -o $@ list.c

dummy_impl.o: dummy_impl.c scheduler.h
	$(CC) $(CCOPTS) -o $@ dummy_impl.c

lab4_tests.o: lab4_tests.c list.h scheduler.h testrunner.h
	$(CC) $(CCOPTS) -o $@ lab4_tests.c

testrunner.o: testrunner.c testrunner.h
	$(CC) $(CCOPTS) -o $@ testrunner.c

test: scheduler
	- ./scheduler -test -f10 fifo
	- ./scheduler -test -f10 rr
	- killall scheduler

doc: $(README)
	$(TEX) $(README)

clean:
	- $(RM) $(EXEC)
	- $(RM) $(OBJECTS)
	- $(RM) *~
	- $(RM) core.*
	- $(RM) lab4.in lab4.out lab4.err
	- $(RM) *.aux *.log *.pdf
	- $(RM) -r auto
{'fraction_non_alphanumeric': 0.20066571564431765, 'fraction_numerical': 0.010461245839277223, 'mean_word_length': 3.3833333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3148899', 'n_tokens_mistral': 997, 'n_tokens_neox': 950, 'n_words': 220}