DPF OpenGL examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.6KB

  1. #!/usr/bin/make -f
  2. # Makefile for DPF examples #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../dpf/dgl/Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -I../dpf/dgl
  9. LINK_FLAGS += -L../dpf -ldgl $(DGL_LIBS)
  10. # --------------------------------------------------------------
  11. ifeq ($(WIN32),true)
  12. TARGETS = app.exe color.exe demo.exe images.exe
  13. else
  14. TARGETS = app color demo images
  15. endif
  16. # --------------------------------------------------------------
  17. all: ../libdgl.a $(TARGETS)
  18. build: $(TARGETS)
  19. clean:
  20. $(RM) $(TARGETS)
  21. debug:
  22. $(MAKE) DEBUG=true
  23. # --------------------------------------------------------------
  24. %.exe: %
  25. rm -f $*.exe
  26. mv $* $*.exe
  27. ln -sf $*.exe $*
  28. ../libdgl.a: .FORCE
  29. $(MAKE) -C ../dpf/dgl
  30. # --------------------------------------------------------------
  31. app: app.cpp ../dpf/dgl/*
  32. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  33. color: color.cpp ../dpf/dgl/*
  34. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  35. demo: demo.cpp ../dpf/dgl/*
  36. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  37. images: images.cpp images_src/* ../dpf/dgl/*
  38. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  39. # --------------------------------------------------------------
  40. cairo: cairo.cpp ../dgl/*
  41. $(CXX) $< $(BUILD_CXX_FLAGS) $(shell pkg-config --cflags --libs cairo) $(LINK_FLAGS) -o $@
  42. text: text.cpp ../dgl/*
  43. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  44. # --------------------------------------------------------------
  45. .FORCE:
  46. .PHONY: .FORCE
  47. # --------------------------------------------------------------