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.

81 lines
2.1KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-native #
  3. # ------------------------------------ #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_C_FLAGS += -fvisibility=hidden -fPIC -I. -I.. -I../../includes
  9. BUILD_CXX_FLAGS += -fvisibility=hidden -fPIC -I. -I.. -I../../includes -I../../utils -I../../libs/distrho-plugin-toolkit
  10. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui)
  11. LINK_FLAGS += -shared
  12. LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui)
  13. ifeq ($(HAVE_ZYN_DEPS),true)
  14. ZYN_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  15. ZYN_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml)
  16. LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml) -lpthread
  17. endif
  18. # --------------------------------------------------------------
  19. # Simple plugins
  20. OBJS = \
  21. bypass.c.o \
  22. midi-split.c.o \
  23. midi-through.c.o
  24. # DISTRHO plugins
  25. OBJS += \
  26. distrho-3bandeq.cpp.o \
  27. distrho-3bandsplitter.cpp.o \
  28. distrho-pingpongpan.cpp.o
  29. # ZynAddSubFX
  30. ifeq ($(HAVE_ZYN_DEPS),true)
  31. OBJS += \
  32. zynaddsubfx.cpp.o \
  33. zynaddsubfx-src.cpp.o
  34. endif
  35. TARGET = ../carla_native.so
  36. # --------------------------------------------------------------
  37. all: $(TARGET)
  38. clean:
  39. rm -f $(OBJS) $(TARGET)
  40. # --------------------------------------------------------------
  41. %.c.o: %.c
  42. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  43. %.cpp.o: %.cpp
  44. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  45. $(TARGET): $(OBJS)
  46. $(CXX) $^ $(LINK_FLAGS) -o $@
  47. # --------------------------------------------------------------
  48. distrho-3bandeq.cpp.o: distrho-3bandeq.cpp
  49. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -c -o $@
  50. distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp
  51. $(CXX) $< $(BUILD_CXX_FLAGS) -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -c -o $@
  52. distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp
  53. $(CXX) $< $(BUILD_CXX_FLAGS) -Ipingpongpan -DDISTRHO_NAMESPACE=DISTRHO_PingPongPan -c -o $@
  54. zynaddsubfx.cpp.o: zynaddsubfx.cpp
  55. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
  56. zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp
  57. $(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@