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

11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
10 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
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
10 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
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. #!/usr/bin/make -f
  2. # Makefile for carla-discovery #
  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 += -I../includes/ladspa -I../includes/vst -I../includes/vst3
  11. #-Wno-multichar
  12. BUILD_CXX_FLAGS += $(QTCORE_FLAGS)
  13. LINK_FLAGS += $(QTCORE_LIBS)
  14. ifeq ($(MACOS),true)
  15. BUILD_CXX_FLAGS += -ObjC++
  16. endif
  17. # --------------------------------------------------------------
  18. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  19. BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  20. ifeq ($(MACOS),true)
  21. BUILD_CXX_FLAGS += -DWANT_AU
  22. endif
  23. ifeq ($(MACOS_OR_WIN32),true)
  24. BUILD_CXX_FLAGS += -DWANT_VST3
  25. endif
  26. ifeq ($(CARLA_VESTIGE_HEADER),true)
  27. BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  28. endif
  29. endif
  30. # --------------------------------------------------------------
  31. ifeq ($(HAVE_CSOUND),true)
  32. NATIVE_FLAGS += -DWANT_CSOUND $(CSOUND_FLAGS) $(CSOUND_LIBS)
  33. endif
  34. ifeq ($(HAVE_FLUIDSYNTH),true)
  35. NATIVE_FLAGS += -DWANT_FLUIDSYNTH $(FLUIDSYNTH_FLAGS) $(FLUIDSYNTH_LIBS)
  36. endif
  37. ifeq ($(HAVE_LINUXSAMPLER),true)
  38. NATIVE_FLAGS += -DWANT_LINUXSAMPLER $(LINUXSAMPLER_FLAGS) $(LINUXSAMPLER_LIBS)
  39. endif
  40. # --------------------------------------------------------------
  41. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  42. LIBS += ../modules/lilv.a
  43. LIBS_posix32 += ../modules/lilv.posix32.a
  44. LIBS_posix64 += ../modules/lilv.posix64.a
  45. LIBS_win32 += ../modules/lilv.win32.a
  46. LIBS_win64 += ../modules/lilv.win64.a
  47. LINK_FLAGS += $(LILV_LIBS)
  48. endif
  49. ifeq ($(HAVE_JUCE),true)
  50. LIBS += ../modules/juce_audio_basics.a
  51. LIBS_posix32 += ../modules/juce_audio_basics.posix32.a
  52. LIBS_posix64 += ../modules/juce_audio_basics.posix64.a
  53. LIBS_win32 += ../modules/juce_audio_basics.win32.a
  54. LIBS_win64 += ../modules/juce_audio_basics.win64.a
  55. LIBS += ../modules/juce_core.a
  56. LIBS_posix32 += ../modules/juce_core.posix32.a
  57. LIBS_posix64 += ../modules/juce_core.posix64.a
  58. LIBS_win32 += ../modules/juce_core.win32.a
  59. LIBS_win64 += ../modules/juce_core.win64.a
  60. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  61. LINK_FLAGS += $(JUCE_CORE_LIBS)
  62. endif
  63. ifeq ($(MACOS_OR_WIN32),true)
  64. LIBS += ../modules/juce_audio_processors.a
  65. LIBS_posix32 += ../modules/juce_audio_processors.posix32.a
  66. LIBS_posix64 += ../modules/juce_audio_processors.posix64.a
  67. LIBS_win32 += ../modules/juce_audio_processors.win32.a
  68. LIBS_win64 += ../modules/juce_audio_processors.win64.a
  69. LIBS += ../modules/juce_data_structures.a
  70. LIBS_posix32 += ../modules/juce_data_structures.posix32.a
  71. LIBS_posix64 += ../modules/juce_data_structures.posix64.a
  72. LIBS_win32 += ../modules/juce_data_structures.win32.a
  73. LIBS_win64 += ../modules/juce_data_structures.win64.a
  74. LIBS += ../modules/juce_events.a
  75. LIBS_posix32 += ../modules/juce_events.posix32.a
  76. LIBS_posix64 += ../modules/juce_events.posix64.a
  77. LIBS_win32 += ../modules/juce_events.win32.a
  78. LIBS_win64 += ../modules/juce_events.win64.a
  79. LIBS += ../modules/juce_graphics.a
  80. LIBS_posix32 += ../modules/juce_graphics.posix32.a
  81. LIBS_posix64 += ../modules/juce_graphics.posix64.a
  82. LIBS_win32 += ../modules/juce_graphics.win32.a
  83. LIBS_win64 += ../modules/juce_graphics.win64.a
  84. LIBS += ../modules/juce_gui_basics.a
  85. LIBS_posix32 += ../modules/juce_gui_basics.posix32.a
  86. LIBS_posix64 += ../modules/juce_gui_basics.posix64.a
  87. LIBS_win32 += ../modules/juce_gui_basics.win32.a
  88. LIBS_win64 += ../modules/juce_gui_basics.win64.a
  89. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  90. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  91. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  92. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  93. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  94. endif
  95. ifeq ($(MACOS),true)
  96. LIBS += ../modules/juce_gui_extra.a
  97. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  98. endif
  99. POSIX_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  100. POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu
  101. POSIX_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu
  102. POSIX_LINK_FLAGS = $(LINK_FLAGS)
  103. ifneq ($(HAIKU),true)
  104. POSIX_LINK_FLAGS += -ldl
  105. endif
  106. WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  107. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  108. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  109. WIN_LINK_FLAGS = $(LINK_FLAGS) $(EXTRA_LIBS)
  110. # --------------------------------------------------------------
  111. DEPS = $(CARLA_BACKEND_UTILS_HPP)
  112. DEPS += $(CARLA_LIB_UTILS_HPP)
  113. DEPS += $(CARLA_MATH_UTILS_HPP)
  114. DEPS += $(CARLA_MIDI_H)
  115. # juce_audio_processors.h
  116. DEPS += $(CARLA_LADSPA_UTILS_HPP)
  117. DEPS += $(CARLA_DSSI_UTILS_CPP)
  118. DEPS += $(CARLA_LV2_UTILS_HPP)
  119. DEPS += $(CARLA_VST_UTILS_HPP)
  120. OBJS = carla-discovery.cpp
  121. # --------------------------------------------------------------
  122. all: ../../bin/carla-discovery-native$(APP_EXT)
  123. posix32: ../../bin/carla-discovery-posix32
  124. posix64: ../../bin/carla-discovery-posix64
  125. win32: ../../bin/carla-discovery-win32.exe
  126. win64: ../../bin/carla-discovery-win64.exe
  127. # --------------------------------------------------------------
  128. ../../bin/carla-discovery-native: $(OBJS) $(DEPS) $(LIBS)
  129. $(CXX) $(OBJS) $(LIBS_START) $(LIBS) $(LIBS_END) $(POSIX_BUILD_FLAGS) $(NATIVE_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  130. ../../bin/carla-discovery-native.exe: $(OBJS) $(DEPS) $(LIBS)
  131. $(CXX) $(OBJS) $(LIBS_START) $(LIBS) $(LIBS_END) $(WIN_BUILD_FLAGS) $(NATIVE_FLAGS) $(WIN_LINK_FLAGS) -o $@
  132. ../../bin/carla-discovery-posix32: $(OBJS) $(DEPS) $(LIBS_posix32)
  133. $(CXX) $(OBJS) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(POSIX_BUILD_FLAGS) $(POSIX_32BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  134. ../../bin/carla-discovery-posix64: $(OBJS) $(DEPS) $(LIBS_posix64)
  135. $(CXX) $(OBJS) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(POSIX_BUILD_FLAGS) $(POSIX_64BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  136. ../../bin/carla-discovery-win32.exe: $(OBJS) $(DEPS) $(LIBS_win32)
  137. $(CXX) $(OBJS) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  138. ../../bin/carla-discovery-win64.exe: $(OBJS) $(DEPS) $(LIBS_win64)
  139. $(CXX) $(OBJS) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  140. # --------------------------------------------------------------
  141. clean:
  142. $(RM) ../../bin/carla-discovery-*
  143. debug:
  144. $(MAKE) DEBUG=true
  145. # --------------------------------------------------------------