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.

41 lines
1.1KB

  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 ?= $(shell pkg-config --variable=moc_location QtCore)
  10. RCC ?= $(shell pkg-config --variable=rcc_location QtCore)
  11. UIC ?= $(shell pkg-config --variable=uic_location QtCore)
  12. STRIP ?= strip
  13. WINDRES ?= windres
  14. # --------------------------------------------------------------
  15. DEBUG ?= false
  16. ifeq ($(DEBUG),true)
  17. BASE_FLAGS = -O0 -g -Wall -Wextra
  18. BASE_FLAGS += -DDEBUG
  19. STRIP = true # FIXME
  20. else
  21. BASE_FLAGS = -O2 -ffast-math -mtune=generic -msse -mfpmath=sse -Wall -Wextra
  22. BASE_FLAGS += -DNDEBUG
  23. endif
  24. BUILD_C_FLAGS = $(BASE_FLAGS) -std=c99 $(CFLAGS)
  25. BUILD_CXX_FLAGS = $(BASE_FLAGS) -std=c++0x $(CXXFLAGS)
  26. LINK_FLAGS = $(LDFLAGS)
  27. ifneq ($(DEBUG),true)
  28. BUILD_CXX_FLAGS += -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG_OUTPUT
  29. endif
  30. # --------------------------------------------------------------
  31. # Currently broken
  32. # HAVE_JACKSESSION = $(shell pkg-config --atleast-version=0.121.0 jack && echo true)