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.

85 lines
2.6KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-discovery #
  3. # ----------------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -I../backend -I../includes -I../utils
  9. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore)
  10. LINK_FLAGS += $(shell pkg-config --libs QtCore)
  11. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  12. BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  13. endif
  14. ifeq ($(HAVE_FLUIDSYNTH),true)
  15. NATIVE_FLAGS += $(shell pkg-config --cflags --libs fluidsynth) -DWANT_FLUIDSYNTH
  16. endif
  17. ifeq ($(HAVE_LINUXSAMPLER),true)
  18. NATIVE_FLAGS += $(shell pkg-config --cflags --libs linuxsampler) -DWANT_LINUXSAMPLER
  19. endif
  20. # --------------------------------------------------------------
  21. POSIX_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  22. POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu
  23. POSIX_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu
  24. POSIX_LINK_FLAGS = $(LINK_FLAGS) -ldl
  25. #-lpthread
  26. WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  27. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  28. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  29. WIN_LINK_FLAGS = $(LINK_FLAGS) -static -mwindows -lole32 -luuid -lws2_32
  30. # --------------------------------------------------------------
  31. all: carla-discovery-native
  32. posix32: carla-discovery-posix32
  33. posix64: carla-discovery-posix64
  34. win32: carla-discovery-win32.exe
  35. win64: carla-discovery-win64.exe
  36. # --------------------------------------------------------------
  37. OBJS = carla-discovery.cpp
  38. carla-discovery-native: $(OBJS) ../libs/lilv.a
  39. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_LINK_FLAGS) $(NATIVE_FLAGS) -o $@ && $(STRIP) $@
  40. carla-discovery-posix32: $(OBJS) ../libs/lilv_posix32.a
  41. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_32BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@ && $(STRIP) $@
  42. carla-discovery-posix64: $(OBJS) ../libs/lilv_posix64.a
  43. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_64BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@ && $(STRIP) $@
  44. carla-discovery-win32.exe: $(OBJS) ../libs/lilv_win32.a
  45. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@ && $(STRIP) $@
  46. carla-discovery-win64.exe: $(OBJS) ../libs/lilv_win64.a
  47. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@ && $(STRIP) $@
  48. # --------------------------------------------------------------
  49. ../libs/lilv.a:
  50. $(MAKE) -C ../libs/lilv
  51. ../libs/lilv_%.a:
  52. $(MAKE) -C ../libs/lilv $*
  53. # --------------------------------------------------------------
  54. clean:
  55. rm -f carla-discovery-*
  56. # --------------------------------------------------------------
  57. debug:
  58. $(MAKE) DEBUG=true