#
# GNU makefile to compile example programs
#

#
# Set the compiler/linker according to the platform you are using.
#  - On Copper (NCSA pSeries690) set to either cc_r or xlc_r
#
CC = cc_r       
LD = cc_r      


#
# Set complier options 
#  - On Copper, set to -qsmp=omp -g
#  - Replace -g with -O when measuring performance
#
CFLAGS = -qsmp=omp -g
LDFLAGS = -qsmp=omp -g -lm 

TARGET = hello sqrt loop
OBJS = hello.o sqrt.o loop.o

all:$(TARGET)

hello: hello.o
sqrt: sqrt.o
loop: loop.o


clean:
	rm -f $(TARGET) $(OBJS)

