61 lines
1.7 KiB
Diff
61 lines
1.7 KiB
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,17 +1,9 @@
|
|
#default build suggestion of MPI + OPENMP with gcc on Livermore machines you might have to change the compiler name
|
|
|
|
-SHELL = /bin/sh
|
|
.SUFFIXES: .cc .o
|
|
|
|
LULESH_EXEC = lulesh2.0
|
|
|
|
-MPI_INC = /opt/local/include/openmpi
|
|
-MPI_LIB = /opt/local/lib
|
|
-
|
|
-SERCXX = g++ -DUSE_MPI=0
|
|
-MPICXX = mpig++ -DUSE_MPI=1
|
|
-CXX = $(MPICXX)
|
|
-
|
|
SOURCES2.0 = \
|
|
lulesh.cc \
|
|
lulesh-comm.cc \
|
|
@@ -20,28 +12,6 @@
|
|
lulesh-init.cc
|
|
OBJECTS2.0 = $(SOURCES2.0:.cc=.o)
|
|
|
|
-#Default build suggestions with OpenMP for g++
|
|
-CXXFLAGS = -g -O3 -fopenmp -I. -Wall
|
|
-LDFLAGS = -g -O3 -fopenmp
|
|
-
|
|
-#Below are reasonable default flags for a serial build
|
|
-#CXXFLAGS = -g -O3 -I. -Wall
|
|
-#LDFLAGS = -g -O3
|
|
-
|
|
-#common places you might find silo on the Livermore machines.
|
|
-#SILO_INCDIR = /opt/local/include
|
|
-#SILO_LIBDIR = /opt/local/lib
|
|
-#SILO_INCDIR = ./silo/4.9/1.8.10.1/include
|
|
-#SILO_LIBDIR = ./silo/4.9/1.8.10.1/lib
|
|
-
|
|
-#If you do not have silo and visit you can get them at:
|
|
-#silo: https://wci.llnl.gov/codes/silo/downloads.html
|
|
-#visit: https://wci.llnl.gov/codes/visit/download.html
|
|
-
|
|
-#below is and example of how to make with silo, hdf5 to get vizulization by default all this is turned off. All paths are Livermore specific.
|
|
-#CXXFLAGS = -g -DVIZ_MESH -I${SILO_INCDIR} -Wall -Wno-pragmas
|
|
-#LDFLAGS = -g -L${SILO_LIBDIR} -Wl,-rpath -Wl,${SILO_LIBDIR} -lsiloh5 -lhdf5
|
|
-
|
|
.cc.o: lulesh.h
|
|
@echo "Building $<"
|
|
$(CXX) -c $(CXXFLAGS) -o $@ $<
|
|
@@ -56,6 +26,7 @@
|
|
/bin/rm -f *.o *~ $(OBJECTS) $(LULESH_EXEC)
|
|
/bin/rm -rf *.dSYM
|
|
|
|
-tar: clean
|
|
- cd .. ; tar cvf lulesh-2.0.tar LULESH-2.0 ; mv lulesh-2.0.tar LULESH-2.0
|
|
-
|
|
+install: lulesh2.0
|
|
+ @echo "Installing"
|
|
+ mkdir -p $(PREFIX)/bin
|
|
+ install --mode=755 lulesh2.0 $(PREFIX)/bin/
|