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.

85 lines
2.3KB

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