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.

92 lines
2.0KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-standalone #
  3. # --------------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. # Shared
  9. LINK_FLAGS += $(shell pkg-config --libs liblo QtGui)
  10. # --------------------------------------------------------------
  11. # Engine
  12. ifeq ($(HAVE_ALSA),true)
  13. LINK_FLAGS += $(shell pkg-config --libs alsa)
  14. endif
  15. ifeq ($(HAVE_JACK),true)
  16. LINK_FLAGS += $(shell pkg-config --libs jack)
  17. endif
  18. ifeq ($(HAVE_PULSEAUDIO),true)
  19. LINK_FLAGS += $(shell pkg-config --libs libpulse-simple)
  20. endif
  21. # --------------------------------------------------------------
  22. # Plugin
  23. ifeq ($(HAVE_SUIL),true)
  24. LINK_FLAGS += $(shell pkg-config --libs suil-0)
  25. endif
  26. ifeq ($(HAVE_FLUIDSYNTH),true)
  27. LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  28. endif
  29. ifeq ($(HAVE_LINUXSAMPLER),true)
  30. LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  31. endif
  32. # --------------------------------------------------------------
  33. # Native
  34. LINK_FLAGS += -lGL
  35. ifeq ($(HAVE_ZYN_DEPS),true)
  36. LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml) -lpthread
  37. endif
  38. # --------------------------------------------------------------
  39. LIBS = ../libcarla_engine.a
  40. LIBS += ../libcarla_plugin.a
  41. LIBS += ../libcarla_native.a
  42. OBJS = \
  43. carla_standalone.cpp.o
  44. SHARED = ../libcarla_standalone.so
  45. STATIC = ../libcarla_standalone.a
  46. # --------------------------------------------------------------
  47. all: $(SHARED)
  48. clean:
  49. rm -f $(OBJS) $(SHARED) $(STATIC)
  50. debug:
  51. $(MAKE) DEBUG=true
  52. # --------------------------------------------------------------
  53. %.cpp.o: %.cpp
  54. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. $(SHARED): $(OBJS) $(LIBS)
  56. $(CXX) $^ -shared $(LINK_FLAGS) -o $@
  57. $(STATIC): $(OBJS) $(LIBS)
  58. $(AR) rs $@ $^
  59. # --------------------------------------------------------------
  60. ../libcarla_engine.a:
  61. $(MAKE) -C ../engine $@
  62. ../libcarla_plugin.a:
  63. $(MAKE) -C ../plugin $@
  64. ../libcarla_native.a:
  65. $(MAKE) -C ../native $@