CC = gcc CFLAGS = -Wall -pedantic -g -D_GNU_SOURCE -std=c99 LDFLAGS = -pthread -lm PROGRAMS = mutex_err_EDEADLK mutex_err_EPERM mutex_err_EPERM_2 \ mutex_rec mutex_rec_EAGAIN mutex_rec_EPERM \ mutex_adap \ mutex_rob all: $(PROGRAMS) mutex_err_EDEADLK: mutex_err_EDEADLK.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_err_EDEADLK.c -o mutex_err_EDEADLK mutex_err_EPERM: mutex_err_EPERM.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_err_EPERM.c -o mutex_err_EPERM mutex_err_EPERM_2: mutex_err_EPERM_2.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_err_EPERM_2.c -o mutex_err_EPERM_2 mutex_rec: mutex_rec.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_rec.c -o mutex_rec mutex_rec_EAGAIN: mutex_rec_EAGAIN.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_rec_EAGAIN.c -o mutex_rec_EAGAIN mutex_rec_EPERM: mutex_rec_EPERM.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_rec_EPERM.c -o mutex_rec_EPERM mutex_adap: mutex_adap.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_adap.c -o mutex_adap mutex_rob: mutex_rob.c $(CC) $(CFLAGS) $(LDFLAGS) mutex_rob.c -o mutex_rob clean: rm -f *.o *~ *.aux *.log *.dvi $(PROGRAMS)