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.

91 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 += -DHAVE_GETTIMEOFDAY -D__UNIX_JACK__
  9. BUILD_CXX_FLAGS += -Irtaudio-4.0.12 -Irtaudio-4.0.12/include -Irtmidi-2.0.1
  10. BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo)
  11. ifeq ($(DEBUG),true)
  12. BUILD_CXX_FLAGS += -D__RTAUDIO_DEBUG__ -D__RTMIDI_DEBUG__
  13. endif
  14. # --------------------------------------------------------------
  15. ifeq ($(HAVE_ALSA),true)
  16. BUILD_CXX_FLAGS += $(shell pkg-config --cflags alsa) -D__LINUX_ALSA__ -D__LINUX_ALSASEQ__
  17. endif
  18. ifeq ($(HAVE_PULSEAUDIO),true)
  19. BUILD_CXX_FLAGS += $(shell pkg-config --cflags libpulse-simple) -D__LINUX_PULSE__
  20. endif
  21. ifeq ($(MACOS),true)
  22. BUILD_CXX_FLAGS += -D__MACOSX_CORE__
  23. endif
  24. ifeq ($(WIN32),true)
  25. BUILD_CXX_FLAGS += -D__WINDOWS_ASIO__ -D__WINDOWS_DS__ -D__WINDOWS_MM__
  26. endif
  27. # --------------------------------------------------------------
  28. OBJSp = \
  29. CarlaEngine.cpp.o \
  30. CarlaEngineOsc.cpp.o \
  31. CarlaEngineThread.cpp.o \
  32. CarlaEngineNative.cpp.o
  33. OBJS = $(OBJSp) \
  34. CarlaEngineBridge.cpp.o \
  35. CarlaEngineJack.cpp.o \
  36. CarlaEngineJuce.cpp.o \
  37. CarlaEngineRtAudio.cpp.o
  38. OBJS += \
  39. rtaudio-4.0.12/RtAudio.cpp.o \
  40. rtmidi-2.0.1/RtMidi.cpp.o
  41. ifeq ($(WIN32),true)
  42. OBJS += \
  43. rtaudio-4.0.12/include/asio.cpp.o \
  44. rtaudio-4.0.12/include/asiodrivers.cpp.o \
  45. rtaudio-4.0.12/include/asiolist.cpp.o \
  46. rtaudio-4.0.12/include/iasiothiscallresolver.cpp.o
  47. endif
  48. TARGET = ../libcarla_engine.a
  49. TARGETp = ../libcarla_engine_plugin.a
  50. # --------------------------------------------------------------
  51. all: $(TARGET) $(TARGETp)
  52. clean:
  53. rm -f $(OBJS) $(OBJSp) $(TARGET) $(TARGETp)
  54. debug:
  55. $(MAKE) DEBUG=true
  56. # --------------------------------------------------------------
  57. HEADERS = \
  58. ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp \
  59. CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  60. %.cpp.o: %.cpp $(HEADERS)
  61. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  62. $(TARGET): $(OBJS)
  63. $(AR) rs $@ $^
  64. $(TARGETp): $(OBJSp)
  65. $(AR) rs $@ $^