# # sample Makefile for gcc with OpenMP # # B. Massingill, 08/25/2006 # # usage examples: # "make hello" to compile "hello.c" to "hello" # "make hello++" to compile "hello++.cpp" to "hello" # OMPC = /usr/bin/gcc CFLAGS = -O -Wall -pedantic -fopenmp OMPCC = /usr/bin/g++ CCFLAGS = -O -Wall -pedantic -fopenmp %: %.c $(OMPC) -o $@ $(CFLAGS) $< %: %.cpp $(OMPCC) -o $@ $(CCFLAGS) $<