#
# A simple threads makefile
#
# This file assumes that you want to create semaphore.o in the 
# current directory and that the source resides in the same directory.
#

# These settings are for the DEC Alpha
#
COMPILE = -I. 
LINK =  semaphore.o -lpthreads -lc_r

#
# If you prefer cc, or c++, make the change here.
#
CC = gcc

OBJS = semaphore.o

all: hello 

hello: $(OBJS) hello.c
	$(CC) hello.c -o hello $(COMPILE) $(LINK)

semaphore.o: semaphore.c semaphore.h
	$(CC) semaphore.c -c $(COMPILE)

