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.

80 lines
2.1KB

  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 -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. CarlaEngineJack.cpp.o \
  35. CarlaEnginePlugin.cpp.o \
  36. CarlaEngineRtAudio.cpp.o \
  37. CarlaEngineOsc.cpp.o \
  38. CarlaEngineThread.cpp.o
  39. ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
  40. OBJS += \
  41. rtaudio-4.0.11/RtAudio.cpp.o \
  42. rtmidi-2.0.1/RtMidi.cpp.o
  43. endif
  44. SHARED = ../libcarla_engine.so
  45. STATIC = ../libcarla_engine.a
  46. # --------------------------------------------------------------
  47. all: $(STATIC)
  48. clean:
  49. rm -f $(OBJS) $(SHARED) $(STATIC)
  50. debug:
  51. $(MAKE) DEBUG=true
  52. # --------------------------------------------------------------
  53. %.cpp.o: %.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  54. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. $(SHARED): $(OBJS)
  56. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  57. $(STATIC): $(OBJS)
  58. $(AR) rs $@ $^