# The -arch=sm_20 flag is needed to prevent warnings from nvcc CC = nvcc CFLAGS = -g -O3 -I. -arch=sm_20 CFLAGS += -I$(HALLD_HOME)/src/libraries/include CUSRC = $(wildcard *.cu) HSRC = $(wildcard *.h) all: gputracker_test gputracker_test: $(CUSRC) $(HSRC) Makefile $(CC) $(CFLAGS) gputracker_test.cu -o $@ -L$(CUDA)/lib64 -lcudart %.o:%.cu $(CC) $(CFLAGS) -c $< clean: rm -f gputracker_test *.o *~ env: @echo "CUSRC=$(CUSRC)" @echo "HUSRC=$(HUSRC)" @echo "HSRC=$(HSRC)"