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.

112 lines
3.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. BUILD_CXX_FLAGS += -I../backend -I../includes -I../utils -isystem ../modules
  10. BUILD_CXX_FLAGS += $(NATIVE_PLUGINS_FLAGS)
  11. # --------------------------------------------------------------
  12. # Link flags
  13. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  14. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  15. LINK_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
  16. LINK_FLAGS += $(JUCE_CORE_LIBS)
  17. LINK_FLAGS += $(LIBLO_LIBS)
  18. LINK_FLAGS += $(LILV_LIBS)
  19. LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  20. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  21. ifeq ($(MACOS_OR_WIN32),true)
  22. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  23. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  24. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  25. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  26. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  27. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  28. endif
  29. ifeq ($(HAVE_FLUIDSYNTH),true)
  30. LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  31. endif
  32. ifeq ($(HAVE_LINUXSAMPLER),true)
  33. LINK_FLAGS += $(LINUXSAMPLER_LIBS)
  34. endif
  35. ifeq ($(HAVE_X11),true)
  36. LINK_FLAGS += $(X11_LIBS)
  37. endif
  38. ifeq ($(LINUX),true)
  39. LINK_FLAGS += -lmagic
  40. endif
  41. # --------------------------------------------------------------
  42. # Libs
  43. LIBS += ../backend/carla_engine_plugin.a
  44. LIBS += ../backend/carla_plugin.a
  45. LIBS += ../modules/native-plugins.a
  46. LIBS += ../modules/jackbridge.a
  47. LIBS += ../modules/juce_audio_basics.a
  48. LIBS += ../modules/juce_audio_formats.a
  49. LIBS += ../modules/juce_core.a
  50. LIBS += ../modules/lilv.a
  51. LIBS += ../modules/rtmempool.a
  52. ifeq ($(MACOS_OR_WIN32),true)
  53. LIBS += ../modules/juce_audio_processors.a
  54. LIBS += ../modules/juce_data_structures.a
  55. LIBS += ../modules/juce_events.a
  56. LIBS += ../modules/juce_graphics.a
  57. LIBS += ../modules/juce_gui_basics.a
  58. LIBS += ../modules/juce_gui_extra.a
  59. endif
  60. # --------------------------------------------------------------
  61. TARGETS = \
  62. ../../bin/carla-native.lv2/carla-native$(LIB_EXT) \
  63. ../../bin/carla-native-lv2-export$(APP_EXT)
  64. # --------------------------------------------------------------
  65. all: $(TARGETS)
  66. clean:
  67. $(RM) $(TARGETS) *.o
  68. $(RM) carla-native.lv2/*.*
  69. debug:
  70. $(MAKE) DEBUG=true
  71. # --------------------------------------------------------------
  72. carla-native-base.cpp.o: carla-native-base.cpp ../modules/CarlaNative.h
  73. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  74. carla-native-lv2.cpp.o: carla-native-lv2.cpp carla-native-base.cpp ../modules/CarlaNative.h
  75. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  76. carla-native-lv2-export.cpp.o: carla-native-lv2-export.cpp carla-native-base.cpp ../modules/CarlaNative.h
  77. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  78. # --------------------------------------------------------------
  79. ../../bin/carla-native.lv2/carla-native$(LIB_EXT): carla-native-lv2.cpp.o $(LIBS)
  80. $(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(LINK_FLAGS) -o $@
  81. ../../bin/carla-native-lv2-export$(APP_EXT): carla-native-lv2-export.cpp.o $(LIBS)
  82. $(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) -o $@
  83. # --------------------------------------------------------------