Makefile.am 858 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
include $(top_srcdir)/cuda.mk

bin_PROGRAMS = EasyWave
EasyWave_SOURCES = cOgrd.cpp \
		   cOkadaEarthquake.cpp \
		   cOkadaFault.cpp \
		   cSphere.cpp \
		   ewGrid.cpp \
		   ewOut2D.cpp \
		   ewParam.cpp \
		   ewPOIs.cpp \
		   ewReset.cpp \
		   ewSource.cpp \
		   ewStep.cpp \
		   okada.cpp \
		   utilits.cpp \
		   cOgrd.h \
		   cOkadaEarthquake.h \
		   cOkadaFault.h \
		   cSphere.h \
		   easywave.h \
		   ewNode.h \
		   utilits.h

EasyWaveGen.cu: EasyWave.cpp
	@cp EasyWave.cpp EasyWaveGen.cu

BUILT_SOURCES = EasyWaveGen.cu
CLEANFILES = EasyWaveGen.cu
	
if ENABLE_CUDA
EasyWave_SOURCES += ewCudaKernels.cu \
		    ewCudaKernels.cuh \
		    ewGpuNode.cu \
		    ewGpuNode.cuh \
		    EasyWaveGen.cu
		    
EasyWave_LINK = $(NVCC) -O2 -o EasyWave
else
EasyWave_SOURCES += EasyWave.cpp
EasyWave_LINK = $(CXX) $(CXXFLAGS) -o EasyWave
endif