Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. include ../../common/make.config
  2. #OPENCL_DIR = /af21/den4gr/NVIDIA_GPU_Computing_SDK/
  3. # C compiler
  4. CC = g++
  5. CC_FLAGS = -O3
  6. #INCLUDES = -I$(OPENCL_DIR)/OpenCL/common/inc -I$(OPENCL_DIR)/shared/inc/
  7. INCLUDES = -I$(OPENCL_INC)
  8. ALL: OCL_particlefilter_naive OCL_particlefilter_double OCL_particlefilter_single
  9. OCL_particlefilter_naive: ex_particle_OCL_naive_seq.o
  10. $(CC) $(CC_FLAGS) ex_particle_OCL_naive_seq.o $(INCLUDES) -L$(OPENCL_LIB) -lOpenCL -o OCL_particlefilter_naive
  11. OCL_particlefilter_double: ex_particle_OCL_double_seq.o
  12. $(CC) $(CC_FLAGS) ex_particle_OCL_double_seq.o $(INCLUDES) -L$(OPENCL_LIB) -lOpenCL -o OCL_particlefilter_double
  13. OCL_particlefilter_single: ex_particle_OCL_single_seq.o
  14. $(CC) $(CC_FLAGS) ex_particle_OCL_single_seq.o $(INCLUDES) -L$(OPENCL_LIB) -lOpenCL -o OCL_particlefilter_single
  15. %.o: %.[ch]
  16. $(CC) $(CC_FLAGS) $< -c
  17. ex_particle_OCL_naive_seq.o: ex_particle_OCL_naive_seq.cpp
  18. $(CC) $(CC_FLAGS) $(INCLUDES) ex_particle_OCL_naive_seq.cpp -c
  19. ex_particle_OCL_double_seq.o: ex_particle_OCL_double_seq.cpp
  20. $(CC) $(CC_FLAGS) $(INCLUDES) ex_particle_OCL_double_seq.cpp -c
  21. ex_particle_OCL_single_seq.o: ex_particle_OCL_single_seq.cpp
  22. $(CC) $(CC_FLAGS) $(INCLUDES) ex_particle_OCL_single_seq.cpp -c
  23. clean:
  24. rm -f *.o *~ OCL_particlefilter_naive OCL_particlefilter_double OCL_particlefilter_single *.linkinfo