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.

48 lines
891B

  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. BUILD_CXX_FLAGS += -I. -I../carla-includes -I../carla-utils -fPIC
  9. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore)
  10. ifeq ($(HAVE_ZYN_DEPS),true)
  11. BUILD_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml)
  12. endif
  13. OBJS = \
  14. bypass.o \
  15. midi-split.o
  16. ifeq ($(HAVE_ZYN_DEPS),true)
  17. OBJS += \
  18. zynaddsubfx.o \
  19. zynaddsubfx-src.o
  20. endif
  21. # --------------------------------------------------------------
  22. all: carla_native.a
  23. doc: carla_native.doxygen
  24. doxygen $<
  25. carla_native.a: $(OBJS)
  26. $(AR) rs $@ $^
  27. # --------------------------------------------------------------
  28. .c.o:
  29. $(CC) -c $< $(BUILD_C_FLAGS) -o $@
  30. .cpp.o:
  31. $(CXX) -c $< $(BUILD_CXX_FLAGS) -o $@
  32. clean:
  33. rm -f *.a *.o