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

10 years ago
10 years ago
11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. $(OBJDIR)/CarlaEngineNative.cpp.exp.o: CarlaEngineNative.cpp
  52. -@mkdir -p $(OBJDIR)
  53. @echo "Compiling CarlaEngineNative.cpp (plugin)"
  54. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@
  55. $(OBJDIR)/%.cpp.o: %.cpp
  56. -@mkdir -p $(OBJDIR)
  57. @echo "Compiling $<"
  58. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  59. -include $(OBJSa:%.o=%.d)
  60. -include $(OBJDIR)/CarlaEngineNative.cpp.exp.d
  61. # ----------------------------------------------------------------------------------------------------------------------------