Audio plugin host https://kx.studio/carla
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.

101 lines
2.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for dgl #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += $(DGL_FLAGS) -I.
  9. # --------------------------------------------------------------
  10. OBJS = \
  11. src/App.cpp.o \
  12. src/Geometry.cpp.o \
  13. src/Image.cpp.o \
  14. src/ImageAboutWindow.cpp.o \
  15. src/ImageButton.cpp.o \
  16. src/ImageKnob.cpp.o \
  17. src/ImageSlider.cpp.o \
  18. src/ImageSwitch.cpp.o \
  19. src/NanoVG.cpp.o \
  20. src/Widget.cpp.o
  21. ifeq ($(MACOS),true)
  22. OBJS += src/Window.mm.o
  23. else
  24. OBJS += src/Window.cpp.o
  25. endif
  26. TARGETS = \
  27. ../dgl.a
  28. # --------------------------------------------------------------
  29. all: $(TARGETS)
  30. # --------------------------------------------------------------
  31. clean:
  32. $(RM) $(OBJS)
  33. $(RM) $(TARGETS)
  34. debug:
  35. $(MAKE) DEBUG=true
  36. # --------------------------------------------------------------
  37. ../dgl.a: $(OBJS)
  38. $(RM) $@
  39. $(AR) crs $@ $^
  40. # --------------------------------------------------------------
  41. BASE_HPP = Base.hpp ../distrho/extra/d_leakdetector.hpp ../distrho/extra/d_scopedpointer.hpp ../distrho/DistrhoUtils.hpp ../distrho/src/DistrhoDefines.h
  42. APP_PRIV_HPP = App.hpp src/AppPrivateData.hpp ../distrho/extra/d_sleep.hpp $(BASE_HPP)
  43. GEOMETRY_HPP = Geometry.hpp $(BASE_HPP)
  44. IMAGE_HPP = Image.hpp $(GEOMETRY_HPP)
  45. WIDGET_HPP = Widget.hpp $(GEOMETRY_HPP)
  46. WINDOW_HPP = Window.hpp $(GEOMETRY_HPP)
  47. src/App.cpp.o: src/App.cpp $(APP_PRIV_HPP) $(WINDOW_HPP)
  48. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  49. src/Geometry.cpp.o: src/Geometry.cpp $(GEOMETRY_HPP)
  50. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  51. src/Image.cpp.o: src/Image.cpp $(IMAGE_HPP)
  52. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  53. src/ImageAboutWindow.cpp.o: src/ImageAboutWindow.cpp ImageAboutWindow.hpp $(IMAGE_HPP) $(WIDGET_HPP) $(WINDOW_HPP)
  54. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. src/ImageButton.cpp.o: src/ImageButton.cpp ImageButton.hpp $(IMAGE_HPP) $(WIDGET_HPP)
  56. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  57. src/ImageKnob.cpp.o: src/ImageKnob.cpp ImageKnob.hpp $(IMAGE_HPP) $(WIDGET_HPP)
  58. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  59. src/ImageSlider.cpp.o: src/ImageSlider.cpp ImageSlider.hpp $(IMAGE_HPP) $(WIDGET_HPP)
  60. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  61. src/ImageSwitch.cpp.o: src/ImageSwitch.cpp ImageSwitch.hpp $(IMAGE_HPP) $(WIDGET_HPP)
  62. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  63. src/NanoVG.cpp.o: src/NanoVG.cpp NanoVG.hpp $(WIDGET_HPP) $(WINDOW_HPP) src/nanovg/*
  64. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  65. src/Widget.cpp.o: src/Widget.cpp $(WIDGET_HPP) $(WINDOW_HPP)
  66. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  67. src/Window.cpp.o: src/Window.cpp $(APP_PRIV_HPP) $(WIDGET_HPP) $(WINDOW_HPP) src/pugl/*
  68. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  69. src/Window.mm.o: src/Window.mm src/Window.cpp $(APP_PRIV_HPP) $(WIDGET_HPP) $(WINDOW_HPP) src/pugl/*
  70. $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  71. # --------------------------------------------------------------