# Semana 1: las cuatro demostraciones del cap. 2 de OSTEP.
#   make         compila todo
#   make test    corre cada demostración una vez (unos 10 s)
#   make clean   borra los binarios
CFLAGS  = -Wall -Wextra -O1 -g
LDLIBS  = -pthread
PROGS   = cpu mem threads io

all: $(PROGS)

$(PROGS): common.h

test: $(PROGS)
	./cpu A
	./mem 0
	./threads 1000
	./io
	cat hola.txt

clean:
	rm -f $(PROGS) hola.txt

.PHONY: all test clean
