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.

81 lines
2.4KB

  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../backend -I../includes -I../modules -I../modules/distrho -I../utils
  9. BUILD_CXX_FLAGS += -DWANT_NATIVE -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST -DWANT_AU -DWANT_CSOUND -DWANT_FLUIDSYNTH -DWANT_LINUXSAMPLER
  10. BUILD_CXX_FLAGS += -DWANT_OPENGL -DWANT_AUDIOFILE -DWANT_MIDIFILE -DWANT_ZYNADDSUBFX -DWANT_ZYNADDSUBFX_UI
  11. BUILD_CXX_FLAGS += -isystem /usr/include/qt5
  12. BUILD_CXX_FLAGS += -isystem /opt/kxstudio/include
  13. # BUILD_CXX_FLAGS += -isystem ../backend/engine/rtaudio-4.0.11
  14. # BUILD_CXX_FLAGS += -I/opt/mingw32/include
  15. ANSI_CXX_FLAGS = -DBUILD_ANSI_TEST -DVESTIGE_HEADER
  16. ANSI_CXX_FLAGS += -ansi -pedantic -pedantic-errors -Wunused-parameter -Wuninitialized -Wno-vla
  17. # ANSI_CXX_FLAGS += -std=c++11 -Wzero-as-null-pointer-constant
  18. ANSI_CXX_FLAGS += -Wcast-qual -Wconversion -Wsign-conversion -Wlogical-op -Waggregate-return
  19. ifeq ($(MACOS),true)
  20. DGL_LIBS = -framework OpenGL -framework Cocoa
  21. else
  22. ifeq ($(WIN32),true)
  23. DGL_LIBS = -lopengl32 -lgdi32
  24. else
  25. DGL_LIBS = -lGL -lX11
  26. endif
  27. endif
  28. TARGETS = CarlaString Print RtList Utils
  29. all: $(TARGETS)
  30. # --------------------------------------------------------------
  31. ANSI: ANSI.cpp #../backend/standalone/CarlaStandalone.cpp.o CarlaBackendDummy.cpp.o ../modules/theme.a
  32. $(CXX) $< $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) $(LINK_FLAGS) -L/opt/kxstudio/lib -lQtCore -lQtGui -llo -o $@
  33. CarlaString: CarlaString.cpp ../utils/CarlaString.hpp
  34. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  35. # valgrind ./CarlaString
  36. DGL: DGL.cpp ../modules/distrho/dgl/src/Window.cpp
  37. $(CXX) $< $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@
  38. # ./DGL
  39. # valgrind ./DGL
  40. Print: Print.cpp
  41. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  42. # valgrind ./Print
  43. RtList: RtList.cpp ../utils/RtList.hpp ../modules/rtmempool.a
  44. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -lpthread -o $@
  45. # valgrind ./RtList
  46. Utils: Utils.cpp
  47. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  48. # valgrind ./Utils
  49. # --------------------------------------------------------------
  50. %.cpp.o: %.cpp
  51. $(CXX) $< $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) -c -o $@
  52. ../modules/%.a:
  53. $(MAKE) -C ../modules $*
  54. # --------------------------------------------------------------
  55. clean:
  56. rm -f *.o $(TARGETS)
  57. debug:
  58. $(MAKE) DEBUG=true
  59. # --------------------------------------------------------------