makefile 546 B

1234567891011121314151617181920
  1. include ../../common/make.config
  2. CXX = g++
  3. DEBUGFLAGS = -g -O3
  4. # You will need to modify the following 2 lines
  5. # by inserting the correct path to the OpenCL
  6. # lib and inc directories.
  7. CXXFLAGS = -I$(OPENCL_INC) -c $(DEBUGFLAGS)
  8. LINKFLAGS = -L$(OPENCL_LIB)
  9. # link objects(binaries) together
  10. a.out: main.o OpenCL.o
  11. $(CXX) main.o OpenCL.o $(LINKFLAGS) -o pathfinder
  12. # compile main function file into object (binary)
  13. main.o: main.cpp OpenCL.cpp kernels.cl
  14. $(CXX) $(CXXFLAGS) main.cpp OpenCL.cpp
  15. clean:
  16. clear
  17. @rm -f pathfinder *.o *.out *~ *\#