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.

89 lines
2.3KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-engine #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo QtCore QtXml)
  9. LINK_FLAGS += $(shell pkg-config --libs liblo QtCore QtXml)
  10. # --------------------------------------------------------------
  11. ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
  12. BUILD_CXX_FLAGS += -DHAVE_GETTIMEOFDAY
  13. BUILD_CXX_FLAGS += -Irtaudio-4.0.11 -Irtaudio-4.0.11/include -Irtmidi-2.0.1
  14. ifeq ($(DEBUG),true)
  15. BUILD_CXX_FLAGS += -D__RTAUDIO_DEBUG__ -D__RTMIDI_DEBUG__
  16. endif
  17. endif
  18. # --------------------------------------------------------------
  19. ifeq ($(HAVE_ALSA),true)
  20. BUILD_CXX_FLAGS += $(shell pkg-config --cflags alsa) -D__LINUX_ALSA__ -D__LINUX_ALSASEQ__
  21. LINK_FLAGS += $(shell pkg-config --libs alsa)
  22. endif
  23. ifeq ($(HAVE_JACK),true)
  24. BUILD_CXX_FLAGS += $(shell pkg-config --cflags jack) -D__UNIX_JACK__
  25. LINK_FLAGS += $(shell pkg-config --libs jack)
  26. endif
  27. ifeq ($(HAVE_PULSEAUDIO),true)
  28. BUILD_CXX_FLAGS += $(shell pkg-config --cflags libpulse-simple) -D__LINUX_PULSE__
  29. LINK_FLAGS += $(shell pkg-config --libs libpulse-simple)
  30. endif
  31. # --------------------------------------------------------------
  32. OBJS = \
  33. CarlaEngine.cpp.o \
  34. CarlaEngineBridge.cpp.o \
  35. CarlaEngineJack.cpp.o \
  36. CarlaEnginePlugin.cpp.o \
  37. CarlaEngineRtAudio.cpp.o \
  38. CarlaEngineOsc.cpp.o \
  39. CarlaEngineThread.cpp.o
  40. ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
  41. OBJS += \
  42. rtaudio-4.0.11/RtAudio.cpp.o \
  43. rtmidi-2.0.1/RtMidi.cpp.o
  44. ifeq ($(WIN32),true)
  45. OBJS += \
  46. rtaudio-4.0.11/include/asio.cpp.o \
  47. rtaudio-4.0.11/include/asiodrivers.cpp.o \
  48. rtaudio-4.0.11/include/asiolist.cpp.o \
  49. rtaudio-4.0.11/include/iasiothiscallresolver.cpp.o
  50. endif
  51. endif
  52. SHARED = ../libcarla_engine.so
  53. STATIC = ../libcarla_engine.a
  54. # --------------------------------------------------------------
  55. all: $(STATIC)
  56. clean:
  57. rm -f $(OBJS) $(SHARED) $(STATIC)
  58. debug:
  59. $(MAKE) DEBUG=true
  60. # --------------------------------------------------------------
  61. %.cpp.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  62. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  63. $(SHARED): $(OBJS)
  64. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  65. $(STATIC): $(OBJS)
  66. $(AR) rs $@ $^