##################################################
# An example source module to accompany...
#
# "Using POSIX Threads:
#          Programming with Pthreads"
#  Brad nichols, Dick Buttlar, Jackie Farrell
#  O'Reilly & Associates, Inc.
#
##################################################
# simple/Makefile
#
# makefile for the example programs 
#
CC = gcc
CFLAGS = -g
THREAD_CFLAGS = ${CFLAGS} -lpthread

all : mutex  mutex1 condmutex condmutexn

mutex : mutex.o
	${CC} ${THREAD_CFLAGS} mutex.o -o mutex 

mutex1 : mutex1.o
	${CC} ${THREAD_CFLAGS} mutex1.o -o mutex1

condmutex : condmutex.o
	${CC} ${THREAD_CFLAGS} condmutex.o -o condmutex 

condmutexn : condmutexn.o
	${CC} ${THREAD_CFLAGS} condmutexn.o -o condmutexn

clean :
	rm -f *.o *~ *#  core  mutex condmutex mutex1 condmutexn
