CC = gcc -std=c11 -pedantic -Wall all: fork1 fork2 pthread1 pthread2 fork1: fork.c $(CC) -DPART1 -o fork1 fork.c fork2: fork.c $(CC) -o fork2 fork.c pthread1: pthread.c $(CC) -DPART1 -o pthread1 pthread.c -pthread pthread2: pthread.c $(CC) -o pthread2 pthread.c -pthread clean: rm -f a.out core fork1 fork2 pthread1 pthread2