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.

71 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. $(OBJDIR)/CarlaPluginJack.cpp.o
  24. TARGETS = \
  25. $(MODULEDIR)/carla_plugin.a
  26. # ----------------------------------------------------------------------------------------------------------------------------
  27. all: $(TARGETS)
  28. # ----------------------------------------------------------------------------------------------------------------------------
  29. clean:
  30. rm -f $(OBJS) $(TARGETS)
  31. debug:
  32. $(MAKE) DEBUG=true
  33. # ----------------------------------------------------------------------------------------------------------------------------
  34. $(MODULEDIR)/carla_plugin.a: $(OBJS)
  35. -@mkdir -p $(MODULEDIR)
  36. @echo "Creating carla_plugin.a"
  37. @rm -f $@
  38. @$(AR) crs $@ $^
  39. # ----------------------------------------------------------------------------------------------------------------------------
  40. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
  41. -@mkdir -p $(OBJDIR)
  42. @echo "Compiling $<"
  43. @$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
  44. $(OBJDIR)/CarlaPluginLinuxSampler.cpp.o: CarlaPluginLinuxSampler.cpp
  45. -@mkdir -p $(OBJDIR)
  46. @echo "Compiling $<"
  47. @$(CXX) $< $(BUILD_CXX_FLAGS) $(LINUXSAMPLER_FLAGS) -c -o $@
  48. $(OBJDIR)/%.cpp.o: %.cpp
  49. -@mkdir -p $(OBJDIR)
  50. @echo "Compiling $<"
  51. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  52. -include $(OBJS:%.o=%.d)
  53. # ----------------------------------------------------------------------------------------------------------------------------