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.

Makefile 2.4KB

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