.PHONY: all demos clean

all: demos

demos: threads mutex

threads: compteur-sans-mutex.c
	gcc -O0 -pthread compteur-sans-mutex.c -o threads

mutex: compteur-avec-mutex.c
	gcc -O0 -pthread compteur-avec-mutex.c -o mutex

clean:
	rm -f threads mutex
