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 3.4KB

11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. # Common
  13. LINK_FLAGS += $(LIBLO_LIBS)
  14. LINK_FLAGS += $(QTCORE_LIBS)
  15. LINK_FLAGS += $(QTXML_LIBS)
  16. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  17. # --------------------------------------------------------------
  18. # Engine
  19. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  20. # --------------------------------------------------------------
  21. # Plugin
  22. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  23. LINK_FLAGS += $(LILV_LIBS)
  24. endif
  25. ifeq ($(HAVE_FLUIDSYNTH),true)
  26. LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  27. endif
  28. ifeq ($(HAVE_LINUXSAMPLER),true)
  29. LINK_FLAGS += $(LINUXSAMPLER_LIBS)
  30. endif
  31. # --------------------------------------------------------------
  32. # Coomon
  33. ifeq ($(HAVE_DGL),true)
  34. LINK_FLAGS += $(DGL_LIBS)
  35. endif
  36. ifeq ($(HAVE_JUCE),true)
  37. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  38. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  39. LINK_FLAGS += $(JUCE_CORE_LIBS)
  40. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  41. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  42. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  43. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  44. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  45. endif
  46. # --------------------------------------------------------------
  47. # Native
  48. LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  49. # --------------------------------------------------------------
  50. # Libs
  51. LIBS += ../backend/carla_engine_plugin.a
  52. LIBS += ../backend/carla_plugin.a
  53. LIBS += ../modules/native-plugins.a
  54. LIBS += ../modules/jackbridge.a
  55. LIBS += ../modules/rtmempool.a
  56. ifeq ($(HAVE_AF_DEPS),true)
  57. LIBS += ../modules/audio_decoder.a
  58. endif
  59. ifeq ($(HAVE_DGL),true)
  60. LIBS += ../modules/dgl.a
  61. endif
  62. ifeq ($(HAVE_JUCE),true)
  63. LIBS += ../modules/juce_audio_basics.a
  64. LIBS += ../modules/juce_audio_processors.a
  65. LIBS += ../modules/juce_core.a
  66. LIBS += ../modules/juce_data_structures.a
  67. LIBS += ../modules/juce_events.a
  68. LIBS += ../modules/juce_graphics.a
  69. LIBS += ../modules/juce_gui_basics.a
  70. LIBS += ../modules/juce_gui_extra.a
  71. endif
  72. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  73. LIBS += ../modules/lilv.a
  74. endif
  75. # --------------------------------------------------------------
  76. TARGETS = \
  77. ../../bin/carla-native.lv2/carla-native$(LIB_EXT) \
  78. ../../bin/carla-native-lv2-export$(APP_EXT)
  79. # --------------------------------------------------------------
  80. all: $(TARGETS)
  81. clean:
  82. $(RM) $(TARGETS) *.o
  83. $(RM) carla-native.lv2/*.*
  84. debug:
  85. $(MAKE) DEBUG=true
  86. # --------------------------------------------------------------
  87. carla-native-base.cpp.o: carla-native-base.cpp ../modules/CarlaNative.h
  88. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  89. carla-native-lv2.cpp.o: carla-native-lv2.cpp carla-native-base.cpp ../modules/CarlaNative.h
  90. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  91. carla-native-lv2-export.cpp.o: carla-native-lv2-export.cpp carla-native-base.cpp ../modules/CarlaNative.h
  92. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  93. # --------------------------------------------------------------
  94. ../../bin/carla-native.lv2/carla-native$(LIB_EXT): carla-native-lv2.cpp.o $(LIBS)
  95. $(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(LINK_FLAGS) -o $@
  96. ../../bin/carla-native-lv2-export$(APP_EXT): carla-native-lv2-export.cpp.o $(LIBS)
  97. $(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) -o $@
  98. # --------------------------------------------------------------