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.

76 lines
1.8KB

  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. # Simple plugins
  17. OBJS = \
  18. bypass.o \
  19. midi-split.o
  20. # DISTRHO plugins
  21. OBJS += \
  22. distrho-3bandeq.o \
  23. distrho-3bandsplitter.o \
  24. distrho-pugl.o
  25. # ZynAddSubFX
  26. ifeq ($(HAVE_ZYN_DEPS),true)
  27. OBJS += zynaddsubfx.o zynaddsubfx-src.o
  28. endif
  29. # --------------------------------------------------------------
  30. all: carla_native.a
  31. doxygen: carla_native.doxygen
  32. doxygen $<
  33. carla_native.a: $(OBJS)
  34. $(AR) rs $@ $^
  35. # --------------------------------------------------------------
  36. distrho-3bandeq.o: distrho-3bandeq.cpp
  37. $(CXX) -c $< $(BUILD_CXX_FLAGS) -I../distrho-plugin-toolkit -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -o $@
  38. distrho-3bandsplitter.o: distrho-3bandsplitter.cpp
  39. $(CXX) -c $< $(BUILD_CXX_FLAGS) -I../distrho-plugin-toolkit -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -o $@
  40. distrho-pugl.o: distrho-pugl.cpp
  41. $(CXX) -c $< $(BUILD_CXX_FLAGS) -I../distrho-plugin-toolkit -o $@
  42. zynaddsubfx.o: zynaddsubfx.cpp
  43. $(CXX) -c $< $(ZYN_CXX_FLAGS) -o $@
  44. zynaddsubfx-src.o: zynaddsubfx-src.cpp
  45. $(CXX) -c $< $(ZYN_CXX_FLAGS) -o $@
  46. # --------------------------------------------------------------
  47. .c.o:
  48. $(CC) -c $< $(BUILD_C_FLAGS) -o $@
  49. .cpp.o:
  50. $(CXX) -c $< $(BUILD_CXX_FLAGS) -o $@
  51. # --------------------------------------------------------------
  52. clean:
  53. rm -f *.a $(OBJS)