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