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.

70 lines
2.0KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. include ../Makefile.mk
  8. # ----------------------------------------------------------------------------------------------------------------------------
  9. OBJS = \
  10. $(OBJDIR)/CarlaPlugin.cpp.o \
  11. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  12. $(OBJDIR)/CarlaPluginNative.cpp.o \
  13. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  14. $(OBJDIR)/CarlaPluginLADSPA.cpp.o \
  15. $(OBJDIR)/CarlaPluginDSSI.cpp.o \
  16. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  17. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  18. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  19. $(OBJDIR)/CarlaPluginSFZero.cpp.o \
  20. $(OBJDIR)/CarlaPluginJack.cpp.o
  21. TARGETS = \
  22. $(MODULEDIR)/carla_plugin.a
  23. # ----------------------------------------------------------------------------------------------------------------------------
  24. all: $(TARGETS)
  25. # ----------------------------------------------------------------------------------------------------------------------------
  26. clean:
  27. rm -f $(OBJS) $(TARGETS)
  28. debug:
  29. $(MAKE) DEBUG=true
  30. # ----------------------------------------------------------------------------------------------------------------------------
  31. $(MODULEDIR)/carla_plugin.a: $(OBJS)
  32. -@mkdir -p $(MODULEDIR)
  33. @echo "Creating carla_plugin.a"
  34. @rm -f $@
  35. @$(AR) crs $@ $^
  36. # ----------------------------------------------------------------------------------------------------------------------------
  37. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
  38. -@mkdir -p $(OBJDIR)
  39. @echo "Compiling $<"
  40. @$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
  41. ifeq ($(MACOS),true)
  42. $(OBJDIR)/CarlaPluginVST2.cpp.o: CarlaPluginVST2.cpp
  43. -@mkdir -p $(OBJDIR)
  44. @echo "Compiling $<"
  45. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  46. endif
  47. $(OBJDIR)/%.cpp.o: %.cpp
  48. -@mkdir -p $(OBJDIR)
  49. @echo "Compiling $<"
  50. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  51. -include $(OBJS:%.o=%.d)
  52. # ----------------------------------------------------------------------------------------------------------------------------