CFLAGS = -Wall -Werror -Wextra -DMU_DEBUG

objects = threaded.o mu.o
headers = mu.h

threaded: threaded.o  mu.o
	$(CC) -o $@ $^ -pthread

$(objects) : %.o : %.c $(headers)
	$(CC) -c -o $@ $(CFLAGS) $< 
	
clean:
	rm -f threaded $(objects)

.PHONY: all clean
