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

  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)/CarlaPluginVST3.cpp.o \
  19. $(OBJDIR)/CarlaPluginAU.cpp.o \
  20. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  21. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  22. $(OBJDIR)/CarlaPluginLinuxSampler.cpp.o
  23. TARGETS = \
  24. $(MODULEDIR)/carla_plugin.a
  25. # ----------------------------------------------------------------------------------------------------------------------------
  26. all: $(TARGETS)
  27. # ----------------------------------------------------------------------------------------------------------------------------
  28. clean:
  29. rm -f $(OBJS) $(TARGETS)
  30. debug:
  31. $(MAKE) DEBUG=true
  32. # ----------------------------------------------------------------------------------------------------------------------------
  33. $(MODULEDIR)/carla_plugin.a: $(OBJS)
  34. -@mkdir -p $(MODULEDIR)
  35. @echo "Creating carla_plugin.a"
  36. @rm -f $@
  37. @$(AR) crs $@ $^
  38. # ----------------------------------------------------------------------------------------------------------------------------
  39. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
  40. -@mkdir -p $(OBJDIR)
  41. @echo "Compiling $<"
  42. @$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
  43. $(OBJDIR)/CarlaPluginLinuxSampler.cpp.o: CarlaPluginLinuxSampler.cpp
  44. -@mkdir -p $(OBJDIR)
  45. @echo "Compiling $<"
  46. @$(CXX) $< $(BUILD_CXX_FLAGS) $(LINUXSAMPLER_FLAGS) -c -o $@
  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. # ----------------------------------------------------------------------------------------------------------------------------