Audio plugin host https://kx.studio/carla
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.

100 lines
3.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla tests #
  3. # ------------------------ #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -I. -I../backend -I../includes -I../modules -I../modules/distrho -I../utils
  9. BUILD_CXX_FLAGS += -std=c++11 -Wzero-as-null-pointer-constant
  10. BUILD_CXX_FLAGS += -isystem /opt/kxstudio/include
  11. # BUILD_CXX_FLAGS += -isystem /usr/include/qt5
  12. # BUILD_CXX_FLAGS += -I/opt/mingw32/include
  13. # --------------------------------------------------------------
  14. # ANSI_CXX_FLAGS += -ansi -pedantic -pedantic-errors -Wunused-parameter -Wuninitialized -Wno-vla
  15. # ANSI_CXX_FLAGS += -Wcast-qual -Wconversion -Wsign-conversion -Wlogical-op -Waggregate-return
  16. # ANSI_CXX_FLAGS += -std=c++11 -Wzero-as-null-pointer-constant
  17. # --------------------------------------------------------------
  18. ANSI_FLAGS = -DBUILD_ANSI_TEST -DREAL_BUILD -I../backend -I../includes
  19. ANSI_FLAGS += -Wall -Wextra -Werror
  20. ANSI_FLAGS += -DDEBUG -O0 -g
  21. ANSI_FLAGS += -ansi -pedantic -pedantic-errors
  22. ANSI_FLAGS += -Wunused-parameter -Wuninitialized -Wcast-qual -Wconversion -Wsign-conversion -Wlogical-op -Waggregate-return
  23. ANSI_FLAGS += -L../backend -lcarla_standalone2
  24. # --------------------------------------------------------------
  25. TARGETS = ansi-pedantic-test_c ansi-pedantic-test_c99 ansi-pedantic-test_cxx ansi-pedantic-test_cxx11
  26. # TARGETS += CarlaString Print RtList Utils
  27. all: $(TARGETS)
  28. # --------------------------------------------------------------
  29. ansi-pedantic-test_c: ansi-pedantic-test.c ../backend/Carla*.h
  30. $(CC) $< $(ANSI_FLAGS) -Wc++-compat -o $@
  31. ansi-pedantic-test_c99: ansi-pedantic-test.c ../backend/Carla*.h
  32. $(CC) $< $(ANSI_FLAGS) -std=c99 -Wc++-compat -o $@
  33. ansi-pedantic-test_cxx: ansi-pedantic-test.c ../backend/Carla*.h
  34. $(CXX) $< $(ANSI_FLAGS) -o $@
  35. ansi-pedantic-test_cxx11: ansi-pedantic-test.c ../backend/Carla*.h
  36. $(CXX) $< $(ANSI_FLAGS) -std=c++11 -Wzero-as-null-pointer-constant -o $@
  37. # --------------------------------------------------------------
  38. CarlaString: CarlaString.cpp ../utils/CarlaString.hpp
  39. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  40. # valgrind ./CarlaString
  41. DISTRHO: DISTRHO.cpp ../modules/distrho/*.hpp ../modules/distrho/src/*.cpp
  42. $(CXX) $< ../modules/dgl.a $(BUILD_CXX_FLAGS) -I../modules/distrho -I../modules/carla_native/nekobi $(LINK_FLAGS) $(DGL_LIBS) -lpthread -o $@
  43. ./DISTRHO
  44. DISTRHO.so: DISTRHO.cpp ../modules/distrho/*.hpp ../modules/distrho/src/*.cpp
  45. $(CXX) $< ../modules/dgl.a $(BUILD_CXX_FLAGS) -I../modules/distrho -I../modules/carla_native/nekobi -DSHARED_DLL $(LINK_FLAGS) $(DGL_LIBS) -lpthread -shared -Wl,--no-undefined -o $@
  46. DGL: DGL.cpp ../modules/distrho/dgl/src/Window.cpp
  47. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@
  48. # ./DGL
  49. # valgrind ./DGL
  50. Print: Print.cpp
  51. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  52. # valgrind ./Print
  53. RtList: RtList.cpp ../utils/RtList.hpp ../modules/rtmempool.a
  54. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -lpthread -o $@
  55. # valgrind ./RtList
  56. Utils: Utils.cpp
  57. $(CXX) $^ $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) -std=c++11 -Wzero-as-null-pointer-constant $(LINK_FLAGS) -ldl -lpthread -o $@
  58. # valgrind ./Utils
  59. # --------------------------------------------------------------
  60. %.cpp.o: %.cpp
  61. $(CXX) $< $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) -c -o $@
  62. ../modules/%.a:
  63. $(MAKE) -C ../modules $*
  64. # --------------------------------------------------------------
  65. clean:
  66. rm -f *.o $(TARGETS)
  67. debug:
  68. $(MAKE) DEBUG=true
  69. # --------------------------------------------------------------