CXX = g++ NVCC = nvcc # 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 = cudatest2.o gpu_routines.o cudatest2: $(OBJS) $(CXX) $(OBJS) -o $@ $(LDFLAGS) cudatest2.o: cudatest2.cc $(CXX) $(CFLAGS) $< -o $@ -c gpu_routines.o: gpu_routines.cu $(NVCC) $(NVCCFLAGS) $< -o $@ -c clean: rm -f cudatest2 *.o *.bak