Makefile 584 B

12345678910111213141516171819202122232425262728293031323334
  1. #all:
  2. # g++ -o components.o -I/usr/local/cuda-5.5/include -c components.cpp
  3. # g++ -o prog -I/usr/local/cuda-5.5/include main.cpp components.o -lOpenCL
  4. #
  5. include ../../common/make.config
  6. ifdef OUTPUT
  7. override OUTPUT = -DOUTPUT
  8. endif
  9. OUTPUT = -DOUTPUT
  10. C_C = g++
  11. OCL_LIB = -lOpenCL
  12. OCL_INC = -I/usr/local/cuda-5.5/include
  13. default: dwt2d
  14. components:
  15. $(C_C) -o components.o $(OCL_INC) -c components.cpp
  16. dwt2d:
  17. $(C_C) -o dwt2d $(OCL_INC) \
  18. main.cpp \
  19. $(components) \
  20. $(OUTPUT) \
  21. $(OCL_LIB)
  22. clean:
  23. rm -rf *.o dwt2d
  24. rm *.bmp.dwt.*