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.

80 lines
2.3KB

  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../libs -I../theme -I../utils
  9. BUILD_CXX_FLAGS += -DWANT_NATIVE -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST -DWANT_FLUIDSYNTH -DWANT_LINUXSAMPLER
  10. BUILD_CXX_FLAGS += -DWANT_RTAUDIO -DWANT_OPENGL -DWANT_AUDIOFILE -DWANT_MIDIFILE -DWANT_ZYNADDSUBFX -DWANT_ZYNADDSUBFX_UI
  11. # BUILD_CXX_FLAGS += -isystem ../libs/juce
  12. # BUILD_CXX_FLAGS += -isystem /usr/include/qt4
  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. # DGL_LIBS = -lQtCore -lopengl32 -lgdi32 -lole32 -luuid -lws2_32
  23. DGL_LIBS = -lQtCore -lGL -lX11
  24. endif
  25. ifeq ($(MACOS),true)
  26. TARGETS = CarlaString DGL1 DGL2 Print
  27. else
  28. TARGETS = ANSI CarlaString DGL1 DGL2 Print RtList Utils
  29. endif
  30. all: $(TARGETS) RUN
  31. # --------------------------------------------------------------
  32. ANSI: ANSI.cpp
  33. $(CXX) $^ $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) $(LINK_FLAGS) -lpthread -o $@
  34. CarlaString: CarlaString.cpp
  35. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  36. DGL1: DGL1.cpp DGL1_Artwork.cpp ../libs/dgl.a
  37. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@
  38. DGL2: DGL2.cpp NekoArtwork.cpp ../libs/dgl.a
  39. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@ && $(STRIP) $@
  40. MacTest: MacTest.cpp
  41. $(CXX) MacTest.cpp -o $@
  42. RtList: RtList.cpp ../utils/RtList.hpp ../libs/rtmempool.a
  43. $(CXX) RtList.cpp ../libs/rtmempool.a $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
  44. Print: Print.cpp
  45. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  46. Utils: Utils.cpp
  47. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  48. RUN: $(TARGETS)
  49. # valgrind ./Base64
  50. # ./ANSI
  51. # ./CarlaString && ./RtList && ./Thread
  52. # ./Print
  53. # ./Base64
  54. # ./GL
  55. # --------------------------------------------------------------
  56. clean:
  57. rm -f $(TARGETS)
  58. debug:
  59. $(MAKE) DEBUG=true