CXX = g++ NVCC = nvcc NVCCFLAGS += -arch sm_13 # Hall-D CFLAGS += -I$(HALLD_HOME)/include LDFLAGS += -L$(HALLD_HOME)/lib/$(BMS_OSNAME) -lHDGEOMETRY #JANA CFLAGS += -I$(JANA_HOME)/include LDFLAGS += -L$(JANA_HOME)/lib -lJANA # CUDA LDFLAGS += -L$(CUDA)/lib64 -lcudart # ROOT CFLAGS += $(shell root-config --cflags) LDFLAGS += $(shell root-config --glibs) # Xerces LDFLAGS += -L$(XERCESCROOT)/lib -lxerces-c OBJS = cudatest3.o GPU_MagneticField.o cudatest3: $(OBJS) $(CXX) $(OBJS) -o $@ $(LDFLAGS) cudatest3.o: cudatest3.cc GPU_MagneticField.h DMagneticFieldMapParameterizedGPU.h $(CXX) $(CFLAGS) $< -o $@ -c GPU_MagneticField.o: GPU_MagneticField.cu GPU_MagneticField.h $(NVCC) $(NVCCFLAGS) $< -o $@ -c clean: rm -f cudatest3 *.o *.bak