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

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