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.

76 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../modules/theme -I../modules/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 /usr/include/qt4
  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 = -lQtCore -lopengl32 -lgdi32 -lole32 -luuid -lws2_32
  24. else
  25. DGL_LIBS = -lQtCore -lGL -lX11
  26. endif
  27. endif
  28. ifeq ($(MACOS),true)
  29. TARGETS = CarlaString DGL1 DGL2 Print
  30. else
  31. TARGETS = ANSI CarlaString DGL1 DGL2 Print RtList Utils
  32. endif
  33. all: $(TARGETS) RUN
  34. # --------------------------------------------------------------
  35. ANSI: ANSI.cpp
  36. $(CXX) $^ $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
  37. CarlaString: CarlaString.cpp ../modules/utils/CarlaString.hpp
  38. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  39. DGL1: DGL1.cpp DGL1_Artwork.cpp ../modules/dgl.a
  40. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@
  41. DGL2: DGL2.cpp NekoArtwork.cpp ../modules/dgl.a
  42. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@ && $(STRIP) $@
  43. RtList: RtList.cpp ../modules/utils/RtList.hpp ../modules/rtmempool.a
  44. $(CXX) RtList.cpp ../modules/rtmempool.a $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
  45. Print: Print.cpp
  46. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  47. Utils: Utils.cpp
  48. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
  49. RUN: $(TARGETS)
  50. ./ANSI && ./CarlaString && ./RtList && ./Print && ./Utils
  51. ./DGL1 && ./DGL2
  52. # --------------------------------------------------------------
  53. clean:
  54. rm -f $(TARGETS)
  55. debug:
  56. $(MAKE) DEBUG=true