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.

150 lines
3.3KB

  1. #!/usr/bin/make -f
  2. # Makefile for dgl #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_C_FLAGS += $(DGL_FLAGS) -I.
  9. BUILD_CXX_FLAGS += $(DGL_FLAGS) -I.
  10. LINK_FLAGS += $(DGL_LIBS)
  11. OBJS = \
  12. src/App.cpp.o \
  13. src/Base.cpp.o \
  14. src/Image.cpp.o \
  15. src/ImageAboutWindow.cpp.o \
  16. src/ImageButton.cpp.o \
  17. src/ImageKnob.cpp.o \
  18. src/ImageSlider.cpp.o \
  19. src/Geometry.cpp.o \
  20. src/Widget.cpp.o \
  21. src/Window.cpp.o
  22. OBJS_posix32 = \
  23. src/App.cpp.posix32.o \
  24. src/Base.cpp.posix32.o \
  25. src/Image.cpp.posix32.o \
  26. src/ImageAboutWindow.cpp.posix32.o \
  27. src/ImageButton.cpp.posix32.o \
  28. src/ImageKnob.cpp.posix32.o \
  29. src/ImageSlider.cpp.posix32.o \
  30. src/Geometry.cpp.posix32.o \
  31. src/Widget.cpp.posix32.o \
  32. src/Window.cpp.posix32.o
  33. OBJS_posix64 = \
  34. src/App.cpp.posix64.o \
  35. src/Base.cpp.posix64.o \
  36. src/Image.cpp.posix64.o \
  37. src/ImageAboutWindow.cpp.posix64.o \
  38. src/ImageButton.cpp.posix64.o \
  39. src/ImageKnob.cpp.posix64.o \
  40. src/ImageSlider.cpp.posix64.o \
  41. src/Geometry.cpp.posix64.o \
  42. src/Widget.cpp.posix64.o \
  43. src/Window.cpp.posix64.o
  44. OBJS_win32 = \
  45. src/App.cpp.win32.o \
  46. src/Base.cpp.win32.o \
  47. src/Image.cpp.win32.o \
  48. src/ImageAboutWindow.cpp.win32.o \
  49. src/ImageButton.cpp.win32.o \
  50. src/ImageKnob.cpp.win32.o \
  51. src/ImageSlider.cpp.win32.o \
  52. src/Geometry.cpp.win32.o \
  53. src/Widget.cpp.win32.o \
  54. src/Window.cpp.win32.o
  55. OBJS_win64 = \
  56. src/App.cpp.win64.o \
  57. src/Base.cpp.win64.o \
  58. src/Image.cpp.win64.o \
  59. src/ImageAboutWindow.cpp.win64.o \
  60. src/ImageButton.cpp.win64.o \
  61. src/ImageKnob.cpp.win64.o \
  62. src/ImageSlider.cpp.win64.o \
  63. src/Geometry.cpp.win64.o \
  64. src/Widget.cpp.win64.o \
  65. src/Window.cpp.win64.o
  66. ifeq ($(MACOS),true)
  67. OBJS += src/pugl/pugl_osx_extended.m.o
  68. OBJS_posix32 += src/pugl/pugl_osx_extended.m.posix32.o
  69. OBJS_posix64 += src/pugl/pugl_osx_extended.m.posix64.o
  70. endif
  71. # --------------------------------------------------------------
  72. all: ../dgl.a
  73. posix32: ../dgl.posix32.a
  74. posix64: ../dgl.posix64.a
  75. win32: ../dgl.win32.a
  76. win64: ../dgl.win64.a
  77. # --------------------------------------------------------------
  78. ../dgl.a: $(OBJS)
  79. $(RM) $@
  80. $(AR) crs $@ $^
  81. ../dgl.posix32.a: $(OBJS_posix32)
  82. $(RM) $@
  83. $(AR) crs $@ $^
  84. ../dgl.posix64.a: $(OBJS_posix64)
  85. $(RM) $@
  86. $(AR) crs $@ $^
  87. ../dgl.win32.a: $(OBJS_win32)
  88. $(RM) $@
  89. $(AR) crs $@ $^
  90. ../dgl.win64.a: $(OBJS_win64)
  91. $(RM) $@
  92. $(AR) crs $@ $^
  93. ../libdgl.dll: $(OBJS)
  94. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  95. ../libdgl.dylib: $(OBJS)
  96. $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@
  97. ../libdgl.so: $(OBJS)
  98. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  99. # --------------------------------------------------------------
  100. %.cpp.o: %.cpp
  101. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  102. %.cpp.posix32.o: %.cpp
  103. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  104. %.cpp.posix64.o: %.cpp
  105. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  106. %.cpp.win32.o: %.cpp
  107. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  108. %.cpp.win64.o: %.cpp
  109. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  110. %.m.o: %.m
  111. $(CC) $< $(BUILD_C_FLAGS) -ObjC -c -o $@
  112. # --------------------------------------------------------------
  113. clean:
  114. $(RM) src/*.o src/pugl/*.o ../dgl*.a ../libdgl.*
  115. debug:
  116. $(MAKE) DEBUG=true
  117. # --------------------------------------------------------------