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.

45 lines
933B

  1. #!/usr/bin/make -f
  2. # Makefile for Cadence C++ code #
  3. # ------------------------------------ #
  4. # Created by falkTX
  5. #
  6. AR ?= ar
  7. CC ?= gcc
  8. CXX ?= g++
  9. MOC ?= moc
  10. RCC ?= rcc
  11. UIC ?= uic
  12. STRIP ?= strip
  13. WINDRES ?= windres
  14. DEBUG ?= false
  15. ifeq ($(DEBUG),true)
  16. BASE_FLAGS = -O0 -g -Wall
  17. BASE_FLAGS += -DDEBUG
  18. STRIP = true # FIXME
  19. else
  20. BASE_FLAGS = -O2 -ffast-math -mtune=generic -msse -mfpmath=sse -Wall
  21. BASE_FLAGS += -DNDEBUG
  22. endif
  23. 32BIT_FLAGS = -m32
  24. 64BIT_FLAGS = -m64
  25. BUILD_C_FLAGS = $(BASE_FLAGS) -std=c99 $(CFLAGS)
  26. BUILD_CXX_FLAGS = $(BASE_FLAGS) -std=c++0x $(CXXFLAGS)
  27. LINK_FLAGS = $(LDFLAGS)
  28. ifneq ($(DEBUG),true)
  29. BUILD_CXX_FLAGS += -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG_OUTPUT
  30. endif
  31. # Comment this line to not use vestige header
  32. BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  33. # Modify to enable/disable specific features
  34. CARLA_PLUGIN_SUPPORT = true
  35. CARLA_SAMPLERS_SUPPORT = true
  36. CARLA_RTAUDIO_SUPPORT = false