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.

68 lines
1.4KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-engine #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. OBJS = \
  9. CarlaEngine.cpp.o \
  10. CarlaEngineOsc.cpp.o \
  11. CarlaEngineThread.cpp.o
  12. OBJSa = $(OBJS) \
  13. CarlaEngineNative.cpp.o \
  14. CarlaEngineJack.cpp.o \
  15. CarlaEngineRtAudio.cpp.o
  16. ifeq ($(HAVE_JUCE),true)
  17. OBJSa += \
  18. CarlaEngineJuce.cpp.o
  19. endif
  20. OBJSp = $(OBJS) \
  21. CarlaEngineNative.cpp.exp.o
  22. HEADERS = \
  23. ../CarlaBackend.h ../CarlaEngine.hpp ../CarlaPlugin.hpp \
  24. CarlaEngineInternal.hpp CarlaEngineOsc.hpp CarlaEngineThread.hpp
  25. TARGETa = ../carla_engine.a
  26. TARGETp = ../carla_engine_plugin.a
  27. # --------------------------------------------------------------
  28. all: $(TARGETa) $(TARGETp)
  29. # --------------------------------------------------------------
  30. %.cpp.o: %.cpp $(HEADERS)
  31. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  32. %.cpp.exp.o: %.cpp $(HEADERS)
  33. $(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_EXPORT -c -o $@
  34. CarlaEngineRtAudio.cpp.o: CarlaEngineRtAudio.cpp $(HEADERS)
  35. $(CXX) $< $(BUILD_CXX_FLAGS) $(RTAUDIO_FLAGS) $(RTMIDI_FLAGS) -c -o $@
  36. $(TARGETa): $(OBJSa)
  37. $(RM) $@
  38. $(AR) crs $@ $^
  39. $(TARGETp): $(OBJSp)
  40. $(RM) $@
  41. $(AR) crs $@ $^
  42. # --------------------------------------------------------------
  43. clean:
  44. $(RM) $(OBJS) $(OBJSp) $(TARGET) $(TARGETp)
  45. debug:
  46. $(MAKE) DEBUG=true
  47. # --------------------------------------------------------------