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.1KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #!/usr/bin/make -f
  2. # Makefile for carla-standalone #
  3. # ----------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. # Common
  9. LINK_FLAGS += $(shell pkg-config --libs liblo QtCore QtGui QtXml)
  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 += $(shell pkg-config --libs gl)
  35. ifeq ($(HAVE_AF_DEPS),true)
  36. LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat sndfile)
  37. endif
  38. ifeq ($(HAVE_ZYN_DEPS),true)
  39. LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml)
  40. endif
  41. # --------------------------------------------------------------
  42. LIBS = ../libcarla_engine.a
  43. LIBS += ../libcarla_plugin.a
  44. LIBS += ../libcarla_native.a
  45. LIBS += ../../libs/dgl.a
  46. LIBS += ../../libs/lilv.a
  47. LIBS += ../../libs/rtmempool.a
  48. OBJS = \
  49. CarlaStandalone.cpp.o
  50. SHARED = ../libcarla_standalone.so
  51. STATIC = ../libcarla_standalone.a
  52. # --------------------------------------------------------------
  53. all: $(SHARED)
  54. clean:
  55. rm -f $(OBJS) $(SHARED) $(STATIC)
  56. debug:
  57. $(MAKE) DEBUG=true
  58. # --------------------------------------------------------------
  59. %.cpp.o: %.cpp ../CarlaEngine.hpp ../CarlaPlugin.hpp
  60. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  61. $(SHARED): $(OBJS) $(LIBS)
  62. $(CXX) $^ -shared $(LINK_FLAGS) -o $@ && $(STRIP) $@
  63. $(STATIC): $(OBJS) $(LIBS)
  64. $(AR) rs $@ $^
  65. # --------------------------------------------------------------
  66. ../libcarla_%.a:
  67. $(MAKE) -C ../$* $@
  68. ../../libs/%.a:
  69. $(MAKE) -C ../../libs/ $*.a