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

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. BUILD_CXX_FLAGS += $(MAGIC_FLAGS)
  15. ifneq ($(HAIKU),true)
  16. ifneq ($(WASM),true)
  17. BUILD_CXX_FLAGS += -pthread
  18. endif
  19. endif
  20. # ---------------------------------------------------------------------------------------------------------------------
  21. OBJS = \
  22. $(OBJDIR)/CarlaPlugin.cpp.o \
  23. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  24. $(OBJDIR)/CarlaPluginNative.cpp.o \
  25. $(OBJDIR)/CarlaPluginCLAP.cpp.o \
  26. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
  27. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  28. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  29. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  30. $(OBJDIR)/CarlaPluginAU.cpp.o \
  31. $(OBJDIR)/CarlaPluginJSFX.cpp.o \
  32. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  33. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  34. $(OBJDIR)/CarlaPluginSFZero.cpp.o
  35. ifeq ($(HAVE_JACK),true)
  36. OBJS += $(OBJDIR)/CarlaPluginJack.cpp.o
  37. endif
  38. ifneq ($(WASM),true)
  39. OBJS += $(OBJDIR)/CarlaPluginBridge.cpp.o
  40. endif
  41. TARGETS = \
  42. $(MODULEDIR)/carla_plugin.a
  43. # ---------------------------------------------------------------------------------------------------------------------
  44. all: $(TARGETS)
  45. # ---------------------------------------------------------------------------------------------------------------------
  46. clean:
  47. rm -f $(OBJS) $(TARGETS)
  48. debug:
  49. $(MAKE) DEBUG=true
  50. # ---------------------------------------------------------------------------------------------------------------------
  51. $(MODULEDIR)/carla_plugin.a: $(OBJS)
  52. -@mkdir -p $(MODULEDIR)
  53. @echo "Creating carla_plugin.a"
  54. $(SILENT)rm -f $@
  55. $(SILENT)$(AR) crs $@ $^
  56. # ---------------------------------------------------------------------------------------------------------------------
  57. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
  58. -@mkdir -p $(OBJDIR)
  59. @echo "Compiling $<"
  60. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
  61. $(OBJDIR)/CarlaPluginJSFX.cpp.o: CarlaPluginJSFX.cpp
  62. -@mkdir -p $(OBJDIR)
  63. @echo "Compiling $<"
  64. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(YSFX_FLAGS) -c -o $@
  65. ifeq ($(MACOS),true)
  66. $(OBJDIR)/CarlaPluginVST2.cpp.o: CarlaPluginVST2.cpp
  67. -@mkdir -p $(OBJDIR)
  68. @echo "Compiling $<"
  69. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  70. $(OBJDIR)/CarlaPluginVST3.cpp.o: CarlaPluginVST3.cpp
  71. -@mkdir -p $(OBJDIR)
  72. @echo "Compiling $<"
  73. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  74. $(OBJDIR)/CarlaPluginCLAP.cpp.o: CarlaPluginCLAP.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. # ---------------------------------------------------------------------------------------------------------------------