Collection of tools useful for audio production
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.

80 lines
1.9KB

  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.
  9. BUILD_CXX_FLAGS += -fvisibility=hidden -fPIC -I. -I../carla-includes -I../carla-utils
  10. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui)
  11. ifeq ($(HAVE_ZYN_DEPS),true)
  12. BUILD_CXX_FLAGS += -DWANT_ZYNADDSUBFX
  13. ZYN_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  14. ZYN_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml)
  15. endif
  16. # --------------------------------------------------------------
  17. # Simple plugins
  18. OBJS = \
  19. bypass.o \
  20. midi-split.o
  21. # DISTRHO plugins
  22. OBJS += \
  23. distrho-3bandeq.o \
  24. distrho-3bandsplitter.o \
  25. distrho-pugl.o
  26. # ZynAddSubFX
  27. ifeq ($(HAVE_ZYN_DEPS),true)
  28. OBJS += \
  29. zynaddsubfx.o \
  30. zynaddsubfx-src.o
  31. endif
  32. # --------------------------------------------------------------
  33. all: carla_native.a
  34. doxygen: carla_native.doxygen
  35. doxygen $<
  36. carla_native.a: $(OBJS)
  37. $(AR) rs $@ $^
  38. # --------------------------------------------------------------
  39. distrho-3bandeq.o: distrho-3bandeq.cpp
  40. $(CXX) -c $< $(BUILD_CXX_FLAGS) -I../distrho-plugin-toolkit -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -o $@
  41. distrho-3bandsplitter.o: distrho-3bandsplitter.cpp
  42. $(CXX) -c $< $(BUILD_CXX_FLAGS) -I../distrho-plugin-toolkit -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -o $@
  43. distrho-pugl.o: distrho-pugl.cpp
  44. $(CXX) -c $< $(BUILD_CXX_FLAGS) -I../distrho-plugin-toolkit -o $@
  45. zynaddsubfx.o: zynaddsubfx.cpp
  46. $(CXX) -c $< $(ZYN_CXX_FLAGS) -o $@
  47. zynaddsubfx-src.o: zynaddsubfx-src.cpp
  48. $(CXX) -c $< $(ZYN_CXX_FLAGS) -o $@
  49. # --------------------------------------------------------------
  50. .c.o:
  51. $(CC) -c $< $(BUILD_C_FLAGS) -o $@
  52. .cpp.o:
  53. $(CXX) -c $< $(BUILD_CXX_FLAGS) -o $@
  54. # --------------------------------------------------------------
  55. clean:
  56. rm -f *.a $(OBJS)