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

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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)
  9. LINK_FLAGS += $(shell pkg-config --libs liblo QtCore)
  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. else
  17. BUILD_CXX_FLAGS += -D_FORTIFY_SOURCE=2
  18. endif
  19. endif
  20. # --------------------------------------------------------------
  21. ifeq ($(HAVE_ALSA),true)
  22. BUILD_CXX_FLAGS += $(shell pkg-config --cflags alsa) -D__LINUX_ALSA__ -D__LINUX_ALSASEQ__
  23. LINK_FLAGS += $(shell pkg-config --libs alsa)
  24. endif
  25. ifeq ($(HAVE_JACK),true)
  26. BUILD_CXX_FLAGS += $(shell pkg-config --cflags jack) -D__UNIX_JACK__
  27. LINK_FLAGS += $(shell pkg-config --libs jack)
  28. endif
  29. ifeq ($(HAVE_PULSEAUDIO),true)
  30. BUILD_CXX_FLAGS += $(shell pkg-config --cflags libpulse-simple) -D__LINUX_PULSE__
  31. LINK_FLAGS += $(shell pkg-config --libs libpulse-simple)
  32. endif
  33. # --------------------------------------------------------------
  34. OBJS = \
  35. CarlaEngine.cpp.o \
  36. CarlaEngineJack.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. endif
  45. SHARED = ../libcarla_engine.so
  46. STATIC = ../libcarla_engine.a
  47. # --------------------------------------------------------------
  48. all: $(STATIC)
  49. clean:
  50. rm -f $(OBJS) $(SHARED) $(STATIC)
  51. debug:
  52. $(MAKE) DEBUG=true
  53. # --------------------------------------------------------------
  54. %.cpp.o: %.cpp ../CarlaPlugin.hpp ../CarlaEngine.hpp CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  55. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  56. $(SHARED): $(OBJS) $(LIBS)
  57. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  58. $(STATIC): $(OBJS) $(LIBS)
  59. $(AR) rs $@ $^