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.

92 lines
2.5KB

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