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 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. #!/usr/bin/make -f
  2. # Makefile for water #
  3. # ----------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=water
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += -I..
  11. ifneq ($(HAIKU),true)
  12. ifneq ($(WASM),true)
  13. BUILD_CXX_FLAGS += -pthread
  14. endif
  15. endif
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. ifeq ($(MACOS),true)
  18. OBJS = $(OBJDIR)/$(MODULENAME).mm.o
  19. OBJS_files = $(OBJDIR)/$(MODULENAME).mm.files.o
  20. OBJS_posix32 = $(OBJDIR)/$(MODULENAME).mm.posix32.o
  21. OBJS_posix64 = $(OBJDIR)/$(MODULENAME).mm.posix64.o
  22. else
  23. OBJS = $(OBJDIR)/$(MODULENAME).cpp.o
  24. OBJS_files = $(OBJDIR)/$(MODULENAME).cpp.files.o
  25. OBJS_arm32 = $(OBJDIR)/$(MODULENAME).cpp.arm32.o
  26. OBJS_posix32 = $(OBJDIR)/$(MODULENAME).cpp.posix32.o
  27. OBJS_posix64 = $(OBJDIR)/$(MODULENAME).cpp.posix64.o
  28. endif
  29. OBJS_win32 = $(OBJDIR)/$(MODULENAME).cpp.win32.o
  30. OBJS_win64 = $(OBJDIR)/$(MODULENAME).cpp.win64.o
  31. # ---------------------------------------------------------------------------------------------------------------------
  32. all: $(MODULEDIR)/$(MODULENAME).a $(MODULEDIR)/$(MODULENAME).files.a
  33. files: $(MODULEDIR)/$(MODULENAME).files.a
  34. arm32: $(MODULEDIR)/$(MODULENAME).arm32.a
  35. posix32: $(MODULEDIR)/$(MODULENAME).posix32.a
  36. posix64: $(MODULEDIR)/$(MODULENAME).posix64.a
  37. win32: $(MODULEDIR)/$(MODULENAME).win32.a
  38. win64: $(MODULEDIR)/$(MODULENAME).win64.a
  39. # ---------------------------------------------------------------------------------------------------------------------
  40. clean:
  41. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  42. debug:
  43. $(MAKE) DEBUG=true
  44. # ---------------------------------------------------------------------------------------------------------------------
  45. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  46. -@mkdir -p $(MODULEDIR)
  47. @echo "Creating $(MODULENAME).a"
  48. $(SILENT)rm -f $@
  49. $(SILENT)$(AR) crs $@ $^
  50. $(MODULEDIR)/$(MODULENAME).files.a: $(OBJS_files)
  51. -@mkdir -p $(MODULEDIR)
  52. @echo "Creating $(MODULENAME).files.a"
  53. $(SILENT)rm -f $@
  54. $(SILENT)$(AR) crs $@ $^
  55. $(MODULEDIR)/$(MODULENAME).arm32.a: $(OBJS_arm32)
  56. -@mkdir -p $(MODULEDIR)
  57. @echo "Creating $(MODULENAME).arm32.a"
  58. $(SILENT)rm -f $@
  59. $(SILENT)$(AR) crs $@ $^
  60. $(MODULEDIR)/$(MODULENAME).posix32.a: $(OBJS_posix32)
  61. -@mkdir -p $(MODULEDIR)
  62. @echo "Creating $(MODULENAME).posix32.a"
  63. $(SILENT)rm -f $@
  64. $(SILENT)$(AR) crs $@ $^
  65. $(MODULEDIR)/$(MODULENAME).posix64.a: $(OBJS_posix64)
  66. -@mkdir -p $(MODULEDIR)
  67. @echo "Creating $(MODULENAME).posix64.a"
  68. $(SILENT)rm -f $@
  69. $(SILENT)$(AR) crs $@ $^
  70. $(MODULEDIR)/$(MODULENAME).win32.a: $(OBJS_win32)
  71. -@mkdir -p $(MODULEDIR)
  72. @echo "Creating $(MODULENAME).win32.a"
  73. $(SILENT)rm -f $@
  74. $(SILENT)$(AR) crs $@ $^
  75. $(MODULEDIR)/$(MODULENAME).win64.a: $(OBJS_win64)
  76. -@mkdir -p $(MODULEDIR)
  77. @echo "Creating $(MODULENAME).win64.a"
  78. $(SILENT)rm -f $@
  79. $(SILENT)$(AR) crs $@ $^
  80. # ---------------------------------------------------------------------------------------------------------------------
  81. $(OBJDIR)/$(MODULENAME).cpp.o: $(MODULENAME).cpp
  82. -@mkdir -p $(OBJDIR)
  83. @echo "Compiling $<"
  84. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  85. $(OBJDIR)/$(MODULENAME).cpp.files.o: $(MODULENAME).files.cpp
  86. -@mkdir -p $(OBJDIR)
  87. @echo "Compiling $<"
  88. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  89. $(OBJDIR)/$(MODULENAME).cpp.%32.o: $(MODULENAME).cpp
  90. -@mkdir -p $(OBJDIR)
  91. @echo "Compiling $< (32bit)"
  92. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  93. $(OBJDIR)/$(MODULENAME).cpp.%64.o: $(MODULENAME).cpp
  94. -@mkdir -p $(OBJDIR)
  95. @echo "Compiling $< (64bit)"
  96. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  97. $(OBJDIR)/$(MODULENAME).cpp.arm32.o: $(MODULENAME).cpp
  98. -@mkdir -p $(OBJDIR)
  99. @echo "Compiling $< (ARM32)"
  100. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  101. # ---------------------------------------------------------------------------------------------------------------------
  102. $(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).mm $(MODULENAME).cpp
  103. -@mkdir -p $(OBJDIR)
  104. @echo "Compiling $<"
  105. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  106. $(OBJDIR)/$(MODULENAME).mm.files.o: $(MODULENAME).files.cpp
  107. -@mkdir -p $(OBJDIR)
  108. @echo "Compiling $<"
  109. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  110. $(OBJDIR)/$(MODULENAME).mm.%32.o: $(MODULENAME).cpp
  111. -@mkdir -p $(OBJDIR)
  112. @echo "Compiling $< (32bit)"
  113. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  114. $(OBJDIR)/$(MODULENAME).mm.%64.o: $(MODULENAME).cpp
  115. -@mkdir -p $(OBJDIR)
  116. @echo "Compiling $< (64bit)"
  117. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  118. # ---------------------------------------------------------------------------------------------------------------------
  119. -include $(OBJS:%.o=%.d)
  120. -include $(OBJS_files:%.o=%.d)
  121. -include $(OBJS_arm32:%.o=%.d)
  122. -include $(OBJS_posix32:%.o=%.d)
  123. -include $(OBJS_posix64:%.o=%.d)
  124. -include $(OBJS_win32:%.o=%.d)
  125. -include $(OBJS_win64:%.o=%.d)
  126. # ---------------------------------------------------------------------------------------------------------------------