CC = gcc
CFLAGS = -Wall -g
LDFLAGS = -l pthread

PROGRAMS = ex0 ex1 ex2 mutex1

all: $(PROGRAMS)

ex0: ex0.c myfutex.o

ex1: ex1.c myfutex.o

ex2: ex2.c myfutex.o 

mutex1: mutex1.c myfutex.o

clean:
	rm -f *.o *~ *.aux *.log *.dvi $(PROGRAMS)