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

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. $(OBJDIR)/CarlaEngineRtAudio.cpp.o
  23. OBJSp = $(OBJS) \
  24. $(OBJDIR)/CarlaEngineNative.cpp.exp.o
  25. TARGETS = \
  26. $(MODULEDIR)/carla_engine.a \
  27. $(MODULEDIR)/carla_engine_plugin.a
  28. # ----------------------------------------------------------------------------------------------------------------------------
  29. all: $(TARGETS)
  30. # ----------------------------------------------------------------------------------------------------------------------------
  31. clean:
  32. rm -f $(OBJSa) $(OBJSp) $(TARGETS)
  33. debug:
  34. $(MAKE) DEBUG=true
  35. # ----------------------------------------------------------------------------------------------------------------------------
  36. $(MODULEDIR)/carla_engine.a: $(OBJSa)
  37. -@mkdir -p $(MODULEDIR)
  38. @echo "Creating carla_engine.a"
  39. @rm -f $@
  40. @$(AR) crs $@ $^
  41. $(MODULEDIR)/carla_engine_plugin.a: $(OBJSp)
  42. -@mkdir -p $(MODULEDIR)
  43. @echo "Creating carla_engine_plugin.a"
  44. @rm -f $@
  45. @$(AR) crs $@ $^
  46. # ----------------------------------------------------------------------------------------------------------------------------
  47. $(OBJDIR)/CarlaEngineRtAudio.cpp.o: CarlaEngineRtAudio.cpp
  48. -@mkdir -p $(OBJDIR)
  49. @echo "Compiling CarlaEngineRtAudio.cpp"
  50. @$(CXX) $< $(BUILD_CXX_FLAGS) $(RTAUDIO_FLAGS) $(RTMIDI_FLAGS) -c -o $@
  51. ifeq ($(MACOS),true)
  52. $(OBJDIR)/CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp
  53. -@mkdir -p $(OBJDIR)
  54. @echo "Compiling CarlaEngineNative.cpp (plugin)"
  55. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -ObjC++ -c -o $@
  56. else
  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. endif
  62. $(OBJDIR)/%.cpp.o: %.cpp
  63. -@mkdir -p $(OBJDIR)
  64. @echo "Compiling $<"
  65. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  66. -include $(OBJSa:%.o=%.d)
  67. -include $(OBJDIR)/CarlaEngineNative.cpp.exp.d
  68. # ----------------------------------------------------------------------------------------------------------------------------