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 3.4KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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../modules -I../utils
  9. BUILD_CXX_FLAGS += -DWANT_NATIVE
  10. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  11. BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  12. ifeq ($(CARLA_VESTIGE_HEADER),true)
  13. BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  14. endif
  15. endif
  16. ifeq ($(CARLA_CSOUND_SUPPORT),true)
  17. NATIVE_FLAGS += -DWANT_CSOUND
  18. endif
  19. ifeq ($(HAVE_FLUIDSYNTH),true)
  20. NATIVE_FLAGS += $(shell pkg-config --cflags --libs fluidsynth) -DWANT_FLUIDSYNTH
  21. endif
  22. ifeq ($(HAVE_LINUXSAMPLER),true)
  23. NATIVE_FLAGS += $(shell pkg-config --cflags --libs linuxsampler) -DWANT_LINUXSAMPLER
  24. endif
  25. # --------------------------------------------------------------
  26. POSIX_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  27. POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu
  28. POSIX_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu
  29. POSIX_LINK_FLAGS = $(LINK_FLAGS) $(EXTRA_LIBS) -ldl -lpthread
  30. ifeq ($(MACOS),true)
  31. POSIX_LINK_FLAGS += -framework Cocoa -framework IOKit
  32. else
  33. POSIX_LINK_FLAGS += -lrt
  34. endif
  35. WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  36. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  37. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  38. WIN_LINK_FLAGS = $(LINK_FLAGS) $(EXTRA_LIBS) -lole32 -lshlwapi -lversion -lwininet -lwinmm -lws2_32
  39. LIBS = ../modules/juce_core.a
  40. LIBS_posix32 = ../modules/juce_core.posix32.a
  41. LIBS_posix64 = ../modules/juce_core.posix64.a
  42. LIBS_win32 = ../modules/juce_core.win32.a
  43. LIBS_win64 = ../modules/juce_core.win64.a
  44. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  45. LIBS += ../modules/lilv.a
  46. LIBS_posix32 += ../modules/lilv.posix32.a
  47. LIBS_posix64 += ../modules/lilv.posix64.a
  48. LIBS_win32 += ../modules/lilv.win32.a
  49. LIBS_win64 += ../modules/lilv.win64.a
  50. endif
  51. OBJS = carla-discovery.cpp
  52. # --------------------------------------------------------------
  53. ifeq ($(WIN32),true)
  54. all: carla-discovery-native.exe
  55. else
  56. all: carla-discovery-native
  57. endif
  58. posix32: carla-discovery-posix32
  59. posix64: carla-discovery-posix64
  60. win32: carla-discovery-win32.exe
  61. win64: carla-discovery-win64.exe
  62. # --------------------------------------------------------------
  63. carla-discovery-native: $(OBJS) $(LIBS)
  64. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(NATIVE_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  65. carla-discovery-native.exe: $(OBJS) $(LIBS)
  66. $(CXX) $^ $(WIN_BUILD_FLAGS) $(NATIVE_FLAGS) $(WIN_LINK_FLAGS) -o $@
  67. carla-discovery-posix32: $(OBJS) $(LIBS_posix32)
  68. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_32BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  69. carla-discovery-posix64: $(OBJS) $(LIBS_posix64)
  70. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_64BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  71. carla-discovery-win32.exe: $(OBJS) $(LIBS_win32)
  72. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  73. carla-discovery-win64.exe: $(OBJS) $(LIBS_win64)
  74. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  75. # --------------------------------------------------------------
  76. clean:
  77. rm -f carla-discovery-*
  78. debug:
  79. $(MAKE) DEBUG=true
  80. # --------------------------------------------------------------
  81. .FORCE:
  82. .PHONY: .FORCE
  83. ../modules/juce_core.%.a: .FORCE
  84. $(MAKE) -C ../modules juce_core_$*
  85. ../modules/lilv.%.a: .FORCE
  86. $(MAKE) -C ../modules lilv_$*
  87. ../modules/%.a: .FORCE
  88. $(MAKE) -C ../modules $*