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.

69 lines
1.5KB

  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 images.exe
  13. else
  14. TARGETS = app color images
  15. endif
  16. # --------------------------------------------------------------
  17. all: ../libdgl.a $(TARGETS)
  18. build: $(TARGETS)
  19. clean:
  20. $(MAKE) -C ../dgl clean
  21. $(RM) $(TARGETS)
  22. debug:
  23. $(MAKE) DEBUG=true
  24. # --------------------------------------------------------------
  25. %.exe: %
  26. rm -f $*.exe
  27. mv $* $*.exe
  28. ln -sf $*.exe $*
  29. ../libdgl.a: .FORCE
  30. $(MAKE) -C ../dpf/dgl
  31. # --------------------------------------------------------------
  32. app: app.cpp ../dpf/dgl/*
  33. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  34. color: color.cpp ../dpf/dgl/*
  35. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  36. images: images.cpp images_src/* ../dpf/dgl/*
  37. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  38. # --------------------------------------------------------------
  39. cairo: cairo.cpp ../dgl/*
  40. $(CXX) $< $(BUILD_CXX_FLAGS) $(shell pkg-config --cflags --libs cairo) $(LINK_FLAGS) -o $@
  41. text: text.cpp ../dgl/*
  42. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  43. # --------------------------------------------------------------
  44. .FORCE:
  45. .PHONY: .FORCE
  46. # --------------------------------------------------------------