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.

62 lines
1.4KB

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