#
# Makefile for CS736 test program
#

#
# The C compiler
#
CC = g++

#
# make progam
#
MAKE = make

#
# Compiler flags
#

FFLAGS = 

#
# Optimization level
#
OFLAGS = -O

#
#external libraries
#
LIB = -laio -lthread -lpthread

#
# complete flags
#
CFLAGS = $(FFLAGS) $(OFLAGS) $(LIB)

# all the sources
TEST_SRC = pthr_test.c sthr_test.c 
 

#
# all targes
#
all: pthr_test sthr_test 
	@echo " Done!"

pthr_test:
	$(CC) -o pthr_test $(CFLAGS) pthr_test.c
sthr_test:
	$(CC) -o sthr_test $(CFLAGS) sthr_test.c
.c.o:
	$(CC) $(CFLAGS) -c $*.c

clean:
	rm -f *.o *.exe core *~ *.bak pthr_test sthr_test 
