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.2KB

11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. include ../Makefile.mk
  8. # Workaround GCC bug
  9. ifeq ($(TESTBUILD),true)
  10. ifeq ($(USING_JUCE),true)
  11. BUILD_CXX_FLAGS += -Wno-undef
  12. endif
  13. endif
  14. ifeq ($(USING_JUCE),true)
  15. ifeq ($(WINDOWS),true)
  16. BUILD_CXX_FLAGS += -I$(CWD)/modules/mingw-std-threads
  17. endif
  18. endif
  19. BUILD_CXX_FLAGS += $(MAGIC_FLAGS)
  20. ifneq ($(HAIKU),true)
  21. ifneq ($(WASM),true)
  22. BUILD_CXX_FLAGS += -pthread
  23. endif
  24. endif
  25. # ---------------------------------------------------------------------------------------------------------------------
  26. OBJS = \
  27. $(OBJDIR)/CarlaPlugin.cpp.o \
  28. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  29. $(OBJDIR)/CarlaPluginNative.cpp.o \
  30. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
  31. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  32. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  33. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  34. $(OBJDIR)/CarlaPluginAU.cpp.o \
  35. $(OBJDIR)/CarlaPluginJSFX.cpp.o \
  36. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  37. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  38. $(OBJDIR)/CarlaPluginSFZero.cpp.o
  39. ifeq ($(HAVE_JACK),true)
  40. OBJS += $(OBJDIR)/CarlaPluginJack.cpp.o
  41. endif
  42. ifneq ($(WASM),true)
  43. OBJS += $(OBJDIR)/CarlaPluginBridge.cpp.o
  44. endif
  45. TARGETS = \
  46. $(MODULEDIR)/carla_plugin.a
  47. # ---------------------------------------------------------------------------------------------------------------------
  48. all: $(TARGETS)
  49. # ---------------------------------------------------------------------------------------------------------------------
  50. clean:
  51. rm -f $(OBJS) $(TARGETS)
  52. debug:
  53. $(MAKE) DEBUG=true
  54. # ---------------------------------------------------------------------------------------------------------------------
  55. $(MODULEDIR)/carla_plugin.a: $(OBJS)
  56. -@mkdir -p $(MODULEDIR)
  57. @echo "Creating carla_plugin.a"
  58. $(SILENT)rm -f $@
  59. $(SILENT)$(AR) crs $@ $^
  60. # ---------------------------------------------------------------------------------------------------------------------
  61. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
  62. -@mkdir -p $(OBJDIR)
  63. @echo "Compiling $<"
  64. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
  65. $(OBJDIR)/CarlaPluginJSFX.cpp.o: CarlaPluginJSFX.cpp
  66. -@mkdir -p $(OBJDIR)
  67. @echo "Compiling $<"
  68. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(YSFX_FLAGS) -c -o $@
  69. ifeq ($(MACOS),true)
  70. $(OBJDIR)/CarlaPluginVST2.cpp.o: CarlaPluginVST2.cpp
  71. -@mkdir -p $(OBJDIR)
  72. @echo "Compiling $<"
  73. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  74. $(OBJDIR)/CarlaPluginVST3.cpp.o: CarlaPluginVST3.cpp
  75. -@mkdir -p $(OBJDIR)
  76. @echo "Compiling $<"
  77. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  78. endif
  79. ifeq ($(USING_JUCE),true)
  80. ifeq ($(MACOS),true)
  81. $(OBJDIR)/CarlaPluginJuce.cpp.o: CarlaPluginJuce.cpp
  82. -@mkdir -p $(OBJDIR)
  83. @echo "Compiling $<"
  84. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  85. else
  86. $(OBJDIR)/CarlaPluginJuce.cpp.o: CarlaPluginJuce.cpp
  87. -@mkdir -p $(OBJDIR)
  88. @echo "Compiling $<"
  89. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -std=gnu++14 -c -o $@
  90. endif
  91. endif
  92. $(OBJDIR)/%.cpp.o: %.cpp
  93. -@mkdir -p $(OBJDIR)
  94. @echo "Compiling $<"
  95. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  96. -include $(OBJS:%.o=%.d)
  97. # ---------------------------------------------------------------------------------------------------------------------