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.

Makefile 3.0KB

11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #!/usr/bin/make -f
  2. # Makefile for dgl #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. include ../../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_C_FLAGS += -fvisibility=hidden -fPIC
  9. BUILD_CXX_FLAGS += -fvisibility=hidden -fPIC -I.
  10. OBJS = \
  11. src/App.cpp.o \
  12. src/Image.cpp.o \
  13. src/ImageAboutWindow.cpp.o \
  14. src/ImageButton.cpp.o \
  15. src/ImageKnob.cpp.o \
  16. src/ImageSlider.cpp.o \
  17. src/Geometry.cpp.o \
  18. src/Widget.cpp.o \
  19. src/Window.cpp.o
  20. OBJSM = src/pugl/pugl_osx.m.o
  21. OBJS_posix32 = \
  22. src/App.cpp.posix32.o \
  23. src/Image.cpp.posix32.o \
  24. src/ImageAboutWindow.cpp.posix32.o \
  25. src/ImageButton.cpp.posix32.o \
  26. src/ImageKnob.cpp.posix32.o \
  27. src/ImageSlider.cpp.posix32.o \
  28. src/Geometry.cpp.posix32.o \
  29. src/Widget.cpp.posix32.o \
  30. src/Window.cpp.posix32.o
  31. OBJS_posix64 = \
  32. src/App.cpp.posix64.o \
  33. src/Image.cpp.posix64.o \
  34. src/ImageAboutWindow.cpp.posix64.o \
  35. src/ImageButton.cpp.posix64.o \
  36. src/ImageKnob.cpp.posix64.o \
  37. src/ImageSlider.cpp.posix64.o \
  38. src/Geometry.cpp.posix64.o \
  39. src/Widget.cpp.posix64.o \
  40. src/Window.cpp.posix64.o
  41. OBJS_win32 = \
  42. src/App.cpp.win32.o \
  43. src/Image.cpp.win32.o \
  44. src/ImageAboutWindow.cpp.win32.o \
  45. src/ImageButton.cpp.win32.o \
  46. src/ImageKnob.cpp.win32.o \
  47. src/ImageSlider.cpp.win32.o \
  48. src/Geometry.cpp.win32.o \
  49. src/Widget.cpp.win32.o \
  50. src/Window.cpp.win32.o
  51. OBJS_win64 = \
  52. src/App.cpp.win64.o \
  53. src/Image.cpp.win64.o \
  54. src/ImageAboutWindow.cpp.win64.o \
  55. src/ImageButton.cpp.win64.o \
  56. src/ImageKnob.cpp.win64.o \
  57. src/ImageSlider.cpp.win64.o \
  58. src/Geometry.cpp.win64.o \
  59. src/Widget.cpp.win64.o \
  60. src/Window.cpp.win64.o
  61. # --------------------------------------------------------------
  62. all: ../../dgl.a
  63. posix32: ../../dgl.posix32.a
  64. posix64: ../../dgl.posix64.a
  65. win32: ../../dgl.win32.a
  66. win64: ../../dgl.win64.a
  67. # --------------------------------------------------------------
  68. ../../dgl.a: $(OBJS)
  69. $(AR) rs $@ $^
  70. ../../dgl.posix32.a: $(OBJS_posix32)
  71. $(AR) rs $@ $^
  72. ../../dgl.posix64.a: $(OBJS_posix64)
  73. $(AR) rs $@ $^
  74. ../../dgl.win32.a: $(OBJS_win32)
  75. $(AR) rs $@ $^
  76. ../../dgl.win64.a: $(OBJS_win64)
  77. $(AR) rs $@ $^
  78. ../../dgl.dll: $(OBJS)
  79. $(CXX) $^ -shared $(LINK_FLAGS) -lopengl32 -lgdi32 -o $@
  80. ../../dgl.dylib: $(OBJS)
  81. $(CXX) $^ -shared $(LINK_FLAGS) -framework Cocoa -framework OpenGL -o $@
  82. ../../dgl.so: $(OBJS)
  83. $(CXX) $^ -shared $(LINK_FLAGS) -lX11 -lGL -lGLU -o $@
  84. # --------------------------------------------------------------
  85. %.cpp.o: %.cpp
  86. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  87. %.cpp.posix32.o: %.cpp
  88. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  89. %.cpp.posix64.o: %.cpp
  90. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  91. %.cpp.win32.o: %.cpp
  92. $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  93. %.cpp.win64.o: %.cpp
  94. $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  95. %.m.o: %.m
  96. $(CC) $< $(BUILD_C_FLAGS) -objc -c -o $@
  97. # --------------------------------------------------------------
  98. clean:
  99. rm -f *.o src/*.o src/pugl/*.o ../../dgl.*
  100. debug:
  101. $(MAKE) DEBUG=true