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.

85 lines
2.0KB

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