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.

Makefile 2.2KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 -Wall -Wextra
  9. # BUILD_CXX_FLAGS += -isystem ../libs/juce
  10. # BUILD_CXX_FLAGS += -DWANT_JACK -DWANT_LADSPA -DWANT_DSSI
  11. BUILD_CXX_FLAGS += -isystem /usr/include/qt4
  12. # BUILD_CXX_FLAGS += -isystem ../backend/engine/rtaudio-4.0.11
  13. # BUILD_CXX_FLAGS += -I/opt/mingw32/include
  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. ANSI_CXX_FLAGS += -DBUILD_ANSI_TEST -DVESTIGE_HEADER -fPIC
  18. ifeq ($(MACOS),true)
  19. DGL_LIBS = -framework OpenGL -framework Cocoa
  20. else
  21. # DGL_LIBS = -lQtCore -lopengl32 -lgdi32 -lole32 -luuid -lws2_32
  22. DGL_LIBS = -lQtCore -lGL -lX11
  23. endif
  24. ifeq ($(MACOS),true)
  25. TARGETS = CarlaString DGL1 DGL2 Print
  26. else
  27. TARGETS = ANSI CarlaString DGL1 DGL2 Print RtList Utils
  28. endif
  29. all: $(TARGETS) RUN
  30. # --------------------------------------------------------------
  31. ANSI: ANSI.cpp
  32. $(CXX) $^ $(BUILD_CXX_FLAGS) $(ANSI_CXX_FLAGS) $(LINK_FLAGS) -o $@
  33. CarlaString: CarlaString.cpp
  34. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  35. DGL1: DGL1.cpp DGL1_Artwork.cpp ../libs/dgl.a
  36. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@
  37. DGL2: DGL2.cpp NekoArtwork.cpp ../libs/dgl.a
  38. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@ && $(STRIP) $@
  39. MacTest: MacTest.cpp
  40. $(CXX) MacTest.cpp -o $@
  41. RtList: RtList.cpp ../utils/RtList.hpp ../libs/rtmempool.a
  42. $(CXX) RtList.cpp ../libs/rtmempool.a $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -pthread -lpthread -o $@
  43. Print: Print.cpp
  44. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  45. Utils: Utils.cpp
  46. $(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) -o $@
  47. RUN: $(TARGETS)
  48. # valgrind ./Base64
  49. # ./ANSI
  50. # ./CarlaString && ./RtList && ./Thread
  51. # ./Print
  52. # ./Base64
  53. # ./GL
  54. # --------------------------------------------------------------
  55. clean:
  56. rm -f $(TARGETS)
  57. debug:
  58. $(MAKE) DEBUG=true