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.

162 lines
3.8KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-standalone #
  3. # ----------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. # Common
  9. LINK_FLAGS += $(shell pkg-config --libs liblo)
  10. LINK_FLAGS += $(QTCORE_LIBS)
  11. LINK_FLAGS += $(QTXML_LIBS)
  12. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  13. # ifeq ($(HAVE_JUCE),true)
  14. # LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  15. # LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  16. # LINK_FLAGS += $(JUCE_CORE_LIBS)
  17. # LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  18. # LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  19. # LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  20. # LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  21. # endif
  22. # --------------------------------------------------------------
  23. # Engine
  24. LINK_FLAGS += $(RTAUDIO_LIBS)
  25. LINK_FLAGS += $(RTMIDI_LIBS)
  26. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  27. # --------------------------------------------------------------
  28. # Plugin
  29. # ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  30. # LINK_FLAGS += $(LILV_LIBS)
  31. # endif
  32. #
  33. # ifeq ($(HAVE_FLUIDSYNTH),true)
  34. # LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  35. # endif
  36. #
  37. # ifeq ($(HAVE_LINUXSAMPLER),true)
  38. # LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  39. # ifeq ($(WIN32),true)
  40. # LINK_FLAGS += lrpcrt4
  41. # endif
  42. # endif
  43. # --------------------------------------------------------------
  44. # Native
  45. # ifeq ($(HAVE_OPENGL),true)
  46. # LINK_FLAGS += $(DGL_LIBS)
  47. # endif
  48. #
  49. # ifeq ($(HAVE_AF_DEPS),true)
  50. # LINK_FLAGS += $(shell pkg-config --libs sndfile)
  51. # ifeq ($(HAVE_FFMPEG),true)
  52. # LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat libavutil)
  53. # endif
  54. # endif
  55. #
  56. # ifeq ($(HAVE_MF_DEPS),true)
  57. # LINK_FLAGS += $(shell pkg-config --libs smf)
  58. # endif
  59. #
  60. # ifeq ($(HAVE_ZYN_DEPS),true)
  61. # LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml zlib)
  62. # ifeq ($(HAVE_ZYN_UI_DEPS),true)
  63. # LINK_FLAGS += $(shell pkg-config --libs ntk_images ntk)
  64. # endif
  65. # endif
  66. # --------------------------------------------------------------
  67. LIBS = ../libcarla_engine.a
  68. LIBS += ../libcarla_plugin.a
  69. # LIBS += ../../modules/carla_native.a
  70. LIBS += ../../modules/jackbridge.a
  71. LIBS += ../../modules/rtaudio.a
  72. LIBS += ../../modules/rtmidi.a
  73. LIBS += ../../modules/rtmempool.a
  74. # ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  75. # LIBS += ../../modules/lilv.a
  76. # endif
  77. # ifeq ($(HAVE_JUCE),true)
  78. # LIBS += ../../modules/juce_audio_basics.a
  79. # LIBS += ../../modules/juce_audio_devices.a
  80. # LIBS += ../../modules/juce_core.a
  81. # LIBS += ../../modules/juce_data_structures.a
  82. # LIBS += ../../modules/juce_events.a
  83. # LIBS += ../../modules/juce_graphics.a
  84. # LIBS += ../../modules/juce_gui_basics.a
  85. # endif
  86. # ifeq ($(HAVE_OPENGL),true)
  87. # LIBS += ../../modules/dgl.a
  88. # endif
  89. # --------------------------------------------------------------
  90. OBJS = \
  91. CarlaStandalone.cpp.o
  92. HEADERS = \
  93. ../CarlaBackend.h ../CarlaHost.h ../CarlaEngine.hpp ../CarlaPlugin.hpp ../../modules/CarlaNative.h
  94. ifeq ($(WIN32),true)
  95. TARGET = ../libcarla_standalone2.dll
  96. else
  97. ifeq ($(MACOS),true)
  98. TARGET = ../libcarla_standalone2.dylib
  99. else
  100. TARGET = ../libcarla_standalone2.so
  101. endif
  102. endif
  103. # --------------------------------------------------------------
  104. all: $(TARGET)
  105. clean:
  106. $(RM) $(OBJS) $(TARGET)
  107. debug:
  108. $(MAKE) DEBUG=true
  109. # --------------------------------------------------------------
  110. %.cpp.o: %.cpp $(HEADERS)
  111. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  112. ../libcarla_standalone2.dll: $(OBJS) $(LIBS)
  113. $(CXX) $^ $(LINK_FLAGS) -shared -Wl,--output-def,$@.def -o $@
  114. ../libcarla_standalone2.dylib: $(OBJS) $(LIBS)
  115. $(CXX) $^ $(LINK_FLAGS) -dynamiclib -o $@
  116. ../libcarla_standalone2.so: $(OBJS) $(LIBS)
  117. $(CXX) $^ $(LINK_FLAGS) -shared -o $@
  118. # --------------------------------------------------------------
  119. .FORCE:
  120. .PHONY: .FORCE
  121. ../libcarla_%.a: .FORCE
  122. $(MAKE) -C ../$*
  123. ../../modules/%.a: .FORCE
  124. $(MAKE) -C ../../modules $*
  125. # --------------------------------------------------------------