#
# GNU makefile to compile the program
# 
#

#
# 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 
#  - Replace -g with -O when measuring the performance
CFLAGS = -qsmp=omp -g
LDFLAGS = -qsmp=omp -g


TARGET = primes
OBJS = primes.o 

all:$(TARGET)

primes: primes.o

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

