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.

103 lines
2.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for native-plugins #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. CWDE=..
  8. MODULENAME=native-plugins
  9. include ../modules/Makefile.mk
  10. # ---------------------------------------------------------------------------------------------------------------------
  11. BUILD_C_FLAGS += -I..
  12. BUILD_CXX_FLAGS += -I.. -I$(CWD)/modules
  13. # ---------------------------------------------------------------------------------------------------------------------
  14. # Set targets
  15. TARGETS = \
  16. $(MODULEDIR)/$(MODULENAME).all.a \
  17. $(MODULEDIR)/$(MODULENAME).base.a
  18. # ---------------------------------------------------------------------------------------------------------------------
  19. # Set objects
  20. OBJS = \
  21. $(OBJDIR)/bypass.c.o \
  22. $(OBJDIR)/lfo.c.o \
  23. $(OBJDIR)/midi-channel-filter.c.o \
  24. $(OBJDIR)/midi-channel-ab.c.o \
  25. $(OBJDIR)/midi-gain.c.o \
  26. $(OBJDIR)/midi-join.c.o \
  27. $(OBJDIR)/midi-split.c.o \
  28. $(OBJDIR)/midi-through.c.o \
  29. $(OBJDIR)/midi-transpose.c.o \
  30. $(OBJDIR)/audio-file.cpp.o \
  31. $(OBJDIR)/bigmeter.cpp.o \
  32. $(OBJDIR)/midi-file.cpp.o \
  33. $(OBJDIR)/midi-pattern.cpp.o \
  34. $(OBJDIR)/notes.cpp.o
  35. OBJS_base = \
  36. $(OBJDIR)/_all.base.c.o \
  37. $(OBJDIR)/_data.base.cpp.o \
  38. $(OBJS)
  39. OBJS_all = \
  40. $(OBJDIR)/_all.all.c.o \
  41. $(OBJDIR)/_data.all.cpp.o \
  42. $(OBJS)
  43. # ---------------------------------------------------------------------------------------------------------------------
  44. # Include external plugins, if present
  45. ifneq (,$(wildcard external/Makefile))
  46. include external/Makefile
  47. endif
  48. # ---------------------------------------------------------------------------------------------------------------------
  49. all: $(TARGETS)
  50. # ---------------------------------------------------------------------------------------------------------------------
  51. clean:
  52. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP) $(TARGETS)
  53. debug:
  54. $(MAKE) DEBUG=true
  55. # ---------------------------------------------------------------------------------------------------------------------
  56. $(MODULEDIR)/$(MODULENAME).all.a: $(OBJS_all)
  57. -@mkdir -p $(MODULEDIR)
  58. @echo "Creating $(MODULENAME).all.a"
  59. @rm -f $@
  60. @$(AR) crs $@ $^
  61. $(MODULEDIR)/$(MODULENAME).base.a: $(OBJS_base)
  62. -@mkdir -p $(MODULEDIR)
  63. @echo "Creating $(MODULENAME).base.a"
  64. @rm -f $@
  65. @$(AR) crs $@ $^
  66. # ---------------------------------------------------------------------------------------------------------------------
  67. $(OBJDIR)/%.c.o: %.c
  68. -@mkdir -p $(OBJDIR)
  69. @echo "Compiling $<"
  70. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  71. $(OBJDIR)/%.cpp.o: %.cpp
  72. -@mkdir -p $(OBJDIR)
  73. @echo "Compiling $<"
  74. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  75. # ---------------------------------------------------------------------------------------------------------------------
  76. -include $(OBJS_all:%.o=%.d)
  77. # ---------------------------------------------------------------------------------------------------------------------