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.

102 lines
2.8KB

  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-gain.c.o \
  25. $(OBJDIR)/midi-join.c.o \
  26. $(OBJDIR)/midi-split.c.o \
  27. $(OBJDIR)/midi-through.c.o \
  28. $(OBJDIR)/midi-transpose.c.o \
  29. $(OBJDIR)/audio-file.cpp.o \
  30. $(OBJDIR)/bigmeter.cpp.o \
  31. $(OBJDIR)/midi-file.cpp.o \
  32. $(OBJDIR)/midi-pattern.cpp.o \
  33. $(OBJDIR)/notes.cpp.o
  34. OBJS_base = \
  35. $(OBJDIR)/_all.base.c.o \
  36. $(OBJDIR)/_data.base.cpp.o \
  37. $(OBJS)
  38. OBJS_all = \
  39. $(OBJDIR)/_all.all.c.o \
  40. $(OBJDIR)/_data.all.cpp.o \
  41. $(OBJS)
  42. # ---------------------------------------------------------------------------------------------------------------------
  43. # Include external plugins, if present
  44. ifneq (,$(wildcard external/Makefile))
  45. include external/Makefile
  46. endif
  47. # ---------------------------------------------------------------------------------------------------------------------
  48. all: $(TARGETS)
  49. # ---------------------------------------------------------------------------------------------------------------------
  50. clean:
  51. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP) $(TARGETS)
  52. debug:
  53. $(MAKE) DEBUG=true
  54. # ---------------------------------------------------------------------------------------------------------------------
  55. $(MODULEDIR)/$(MODULENAME).all.a: $(OBJS_all)
  56. -@mkdir -p $(MODULEDIR)
  57. @echo "Creating $(MODULENAME).all.a"
  58. @rm -f $@
  59. @$(AR) crs $@ $^
  60. $(MODULEDIR)/$(MODULENAME).base.a: $(OBJS_base)
  61. -@mkdir -p $(MODULEDIR)
  62. @echo "Creating $(MODULENAME).base.a"
  63. @rm -f $@
  64. @$(AR) crs $@ $^
  65. # ---------------------------------------------------------------------------------------------------------------------
  66. $(OBJDIR)/%.c.o: %.c
  67. -@mkdir -p $(OBJDIR)
  68. @echo "Compiling $<"
  69. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  70. $(OBJDIR)/%.cpp.o: %.cpp
  71. -@mkdir -p $(OBJDIR)
  72. @echo "Compiling $<"
  73. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  74. # ---------------------------------------------------------------------------------------------------------------------
  75. -include $(OBJS_all:%.o=%.d)
  76. # ---------------------------------------------------------------------------------------------------------------------