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.5KB

10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #!/usr/bin/make -f
  2. # Makefile for carla-engine #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. include ../Makefile.mk
  8. # ----------------------------------------------------------------------------------------------------------------------------
  9. OBJS = \
  10. $(OBJDIR)/CarlaEngine.cpp.o \
  11. $(OBJDIR)/CarlaEngineClient.cpp.o \
  12. $(OBJDIR)/CarlaEngineData.cpp.o \
  13. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  14. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  15. $(OBJDIR)/CarlaEngineOsc.cpp.o \
  16. $(OBJDIR)/CarlaEngineOscSend.cpp.o \
  17. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  18. $(OBJDIR)/CarlaEngineThread.cpp.o
  19. OBJSa = $(OBJS) \
  20. $(OBJDIR)/CarlaEngineJack.cpp.o \
  21. $(OBJDIR)/CarlaEngineNative.cpp.o
  22. ifeq ($(MACOS_OR_WIN32),true)
  23. OBJSa += \
  24. $(OBJDIR)/CarlaEngineJuce.cpp.o
  25. else
  26. OBJSa += \
  27. $(OBJDIR)/CarlaEngineRtAudio.cpp.o
  28. endif
  29. OBJSp = $(OBJS) \
  30. $(OBJDIR)/CarlaEngineNative.cpp.exp.o
  31. TARGETS = \
  32. $(MODULEDIR)/carla_engine.a \
  33. $(MODULEDIR)/carla_engine_plugin.a
  34. # ----------------------------------------------------------------------------------------------------------------------------
  35. all: $(TARGETS)
  36. # ----------------------------------------------------------------------------------------------------------------------------
  37. clean:
  38. rm -f $(OBJSa) $(OBJSp) $(TARGETS)
  39. debug:
  40. $(MAKE) DEBUG=true
  41. # ----------------------------------------------------------------------------------------------------------------------------
  42. $(MODULEDIR)/carla_engine.a: $(OBJSa)
  43. -@mkdir -p $(MODULEDIR)
  44. @echo "Creating carla_engine.a"
  45. @rm -f $@
  46. @$(AR) crs $@ $^
  47. $(MODULEDIR)/carla_engine_plugin.a: $(OBJSp)
  48. -@mkdir -p $(MODULEDIR)
  49. @echo "Creating carla_engine_plugin.a"
  50. @rm -f $@
  51. @$(AR) crs $@ $^
  52. # ----------------------------------------------------------------------------------------------------------------------------
  53. $(OBJDIR)/CarlaEngineRtAudio.cpp.o: CarlaEngineRtAudio.cpp
  54. -@mkdir -p $(OBJDIR)
  55. @echo "Compiling CarlaEngineRtAudio.cpp"
  56. @$(CXX) $< $(BUILD_CXX_FLAGS) $(RTAUDIO_FLAGS) $(RTMIDI_FLAGS) -c -o $@
  57. $(OBJDIR)/CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp
  58. -@mkdir -p $(OBJDIR)
  59. @echo "Compiling CarlaEngineNative.cpp (plugin)"
  60. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@
  61. $(OBJDIR)/%.cpp.o: %.cpp
  62. -@mkdir -p $(OBJDIR)
  63. @echo "Compiling $<"
  64. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  65. -include $(OBJSa:%.o=%.d)
  66. -include $(OBJDIR)/CarlaEngineNative.cpp.exp.d
  67. # ----------------------------------------------------------------------------------------------------------------------------