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

11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. include ../Makefile.mk
  8. # ----------------------------------------------------------------------------------------------------------------------------
  9. OBJS = \
  10. $(OBJDIR)/CarlaPlugin.cpp.o \
  11. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  12. $(OBJDIR)/CarlaPluginNative.cpp.o \
  13. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  14. $(OBJDIR)/CarlaPluginLADSPA.cpp.o \
  15. $(OBJDIR)/CarlaPluginDSSI.cpp.o \
  16. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  17. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  18. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  19. $(OBJDIR)/CarlaPluginLinuxSampler.cpp.o \
  20. $(OBJDIR)/CarlaPluginJack.cpp.o
  21. TARGETS = \
  22. $(MODULEDIR)/carla_plugin.a
  23. # ----------------------------------------------------------------------------------------------------------------------------
  24. all: $(TARGETS)
  25. # ----------------------------------------------------------------------------------------------------------------------------
  26. clean:
  27. rm -f $(OBJS) $(TARGETS)
  28. debug:
  29. $(MAKE) DEBUG=true
  30. # ----------------------------------------------------------------------------------------------------------------------------
  31. $(MODULEDIR)/carla_plugin.a: $(OBJS)
  32. -@mkdir -p $(MODULEDIR)
  33. @echo "Creating carla_plugin.a"
  34. @rm -f $@
  35. @$(AR) crs $@ $^
  36. # ----------------------------------------------------------------------------------------------------------------------------
  37. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
  38. -@mkdir -p $(OBJDIR)
  39. @echo "Compiling $<"
  40. @$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
  41. $(OBJDIR)/CarlaPluginLinuxSampler.cpp.o: CarlaPluginLinuxSampler.cpp
  42. -@mkdir -p $(OBJDIR)
  43. @echo "Compiling $<"
  44. @$(CXX) $< $(BUILD_CXX_FLAGS) $(LINUXSAMPLER_FLAGS) -c -o $@
  45. ifeq ($(MACOS),true)
  46. $(OBJDIR)/CarlaPluginVST2.cpp.o: CarlaPluginVST2.cpp
  47. -@mkdir -p $(OBJDIR)
  48. @echo "Compiling $<"
  49. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  50. endif
  51. $(OBJDIR)/%.cpp.o: %.cpp
  52. -@mkdir -p $(OBJDIR)
  53. @echo "Compiling $<"
  54. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  55. -include $(OBJS:%.o=%.d)
  56. # ----------------------------------------------------------------------------------------------------------------------------