Makefile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Straight forward Makefile to compile all examples in a row
  2. #CXX=g++
  3. #CXX=distcc g++
  4. CXX=icecc g++
  5. CFLAGS=-O0 -g -D__ORANGEPI__ -I./ogles_gpgpu -I./ogles_gpgpu/common/ -I./ogles_gpgpu/common/gl
  6. LDFLAGS=-L/usr/lib/mali -lGLESv2 -lEGL -lGL -lglut -lGLEW -lm -ldl
  7. TARGET=main
  8. OBJ = ogles_gpgpu/common/tools.o
  9. OBJ += ogles_gpgpu/common/core.o
  10. OBJ += ogles_gpgpu/common/gl/shader.o
  11. OBJ += ogles_gpgpu/common/gl/fbo.o
  12. OBJ += ogles_gpgpu/common/gl/memtransfer.o
  13. OBJ += ogles_gpgpu/common/gl/memtransfer_factory.o
  14. OBJ += ogles_gpgpu/platform/orangepi/memtransfer_orangepi.o
  15. OBJ += ogles_gpgpu/platform/orangepi/egl.o
  16. OBJ += ogles_gpgpu/common/proc/base/procbase.o
  17. OBJ += ogles_gpgpu/common/proc/base/filterprocbase.o
  18. OBJ += ogles_gpgpu/common/proc/disp.o
  19. OBJ += ogles_gpgpu/common/proc/multipass/gauss_pass.o
  20. OBJ += ogles_gpgpu/common/proc/multipass/adapt_thresh_pass.o
  21. OBJ += ogles_gpgpu/common/proc/base/multipassproc.o
  22. OBJ += ogles_gpgpu/common/proc/grayscale.o
  23. OBJ += ogles_gpgpu/common/proc/thresh.o
  24. OBJ += ${TARGET}.o
  25. all: clean compile
  26. compile: ${TARGET}
  27. clean:
  28. -rm -rf *.exe
  29. -rm -rf *.o
  30. -rm -rf ${OBJ}
  31. -rm ${TARGET}
  32. %.o: %.cpp
  33. ${CXX} -c -o $@ $^ ${CFLAGS} ${LDFLAGS}
  34. ${TARGET}: ${OBJ}
  35. ${CXX} -o $@ $^ ${CFLAGS} ${LDFLAGS}