DISTRHO Plugin Framework
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.

73 lines
1.6KB

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