CFLAGS = -Wall -Wextra -g
PROGS  = paging memtouch

# Secuencias de la semana 8
REFS   = 0 1 0 2 3 0 1 4 0 3 4 0
BELADY = 0 1 2 3 0 1 4 0 1 2 3 4

all: $(PROGS)

# Verifica los ejemplos de las diapositivas.
examples: paging
	./paging -p all -n 3 $(REFS)
	for p in opt fifo lru clock; do ./paging -p $$p -n 3 $(REFS); done
	./paging -p rand -n 3 -t 10000 $(REFS)
	./paging -p fifo -c 5 $(BELADY)
	./paging -p lru -c 5 $(BELADY)

clean:
	rm -f $(PROGS)

.PHONY: all examples clean
