2 #----------------------------------------
4 # file created 98jun18, cca, (cleve.ashcraft@boeing.com)
5 # based on work by clay breshears (clay@turing.wes.hpc.mil)
8 #----------------------------------------
10 # place your favorite compiler here
15 # CC = /usr/lang-4.0/bin/cc
23 # CC = /opt/mpi/bin/mpicc
25 #----------------------------------------
27 # set the compiler flags
37 # CFLAGS = $(OPTLEVEL) -D_POSIX_C_SOURCE=199506L
39 # CFLAGS = -Wall $(OPTLEVEL)
41 #----------------------------------------
45 # LDFLAGS = -Wl,+parallel -Wl,+tm,spp2000 # for hp exemplar
48 #---------------------------------------------------------------------
50 # set any thread libraries
53 # THREAD_LIBS = -D_REENTRANT=199506L -lpthread
54 # THREAD_LIBS = -D_POSIX_C_SOURCE=199506L -lpthread
55 THREAD_LIBS = -lpthread
57 #---------------------------------------------------------------------
59 # set the purify environment (a memory monitoring tool)
62 # PURIFY = /usr/local/purify-4.0.1/purify
64 # purify wouldn't work with the newest version of the gcc library,
65 # so we had to force loading the old version
68 # PURIFY_GCC_VERSION = -V 2.7.2
70 #---------------------------------------------------------------------
72 # set the archive flags
77 #---------------------------------------------------------------------
79 # set the ranlib environment
80 # (if ranlib is not needed, we echo the library name)
85 #---------------------------------------------------------------------
87 # set suffix rule *.c --> *.o
90 $(PURIFY) $(CC) -c $(CFLAGS) $<
92 #---------------------------------------------------------------------
94 # set suffix rule *.c --> *.a
97 $(PURIFY) $(CC) -c $(CFLAGS) $<
98 $(AR) $(ARFLAGS) $@ $*.o
101 #---------------------------------------------------------------------
103 # MPI install library
106 # MPI_INSTALL_DIR = /usr/local/mpich-1.0.13
108 #---------------------------------------------------------------------
118 # MPI_LIB_PATH = -L$(MPI_INSTALL_DIR)/lib/solaris/ch_p4
124 #---------------------------------------------------------------------
130 # MPI_LIBS = $(MPI_LIB_PATH) -D_REENTRANT -lmpi -lsocket -lnsl -lthread
134 # MPI_LIBS = -lmpi -lpthread
137 # MPI_LIBS = -lpthread
138 # MPI_LIBS = $(MPI_LIB_PATH) -lpthread
140 #---------------------------------------------------------------------
145 # MPI_INCLUDE_DIR = -I/usr/include/openmpi
147 #---------------------------------------------------------------------