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.

58 lines
1.3KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-native #
  3. # ------------------------------------ #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. HAVE_ZYN_DEPS = $(shell pkg-config --exists fftw3 mxml && echo true)
  8. HAVE_ZYN_GUI_DEPS = $(shell which ntk-config)
  9. # --------------------------------------------------------------
  10. BUILD_C_FLAGS += -fvisibility=hidden -fPIC -I.
  11. BUILD_CXX_FLAGS += -fvisibility=hidden -fPIC -I. -I../carla-includes -I../carla-utils
  12. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore)
  13. ifeq ($(HAVE_ZYN_DEPS),true)
  14. BUILD_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml) -DWANT_ZYNADDSUBFX
  15. ifneq ($(HAVE_ZYN_GUI_DEPS),)
  16. BUILD_CXX_FLAGS += $(shell ntk-config --cxxflags) -DWANT_ZYNADDSUBFX_GUI
  17. endif
  18. endif
  19. OBJS = \
  20. bypass.o \
  21. midi-split.o
  22. # --------------------------------------------------------------
  23. ifeq ($(HAVE_ZYN_DEPS),true)
  24. OBJS += \
  25. zynaddsubfx.o \
  26. zynaddsubfx-src.o
  27. endif
  28. # --------------------------------------------------------------
  29. all: carla_native.a
  30. doxygen: carla_native.doxygen
  31. doxygen $<
  32. carla_native.a: $(OBJS)
  33. $(AR) rs $@ $^
  34. # --------------------------------------------------------------
  35. .c.o:
  36. $(CC) -c $< $(BUILD_C_FLAGS) -o $@
  37. .cpp.o:
  38. $(CXX) -c $< $(BUILD_CXX_FLAGS) -o $@
  39. clean:
  40. rm -f *.a $(OBJS)