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.

90 lines
2.0KB

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