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

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