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.

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