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 3.8KB

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
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
10 years ago
11 years ago
11 years ago
10 years ago
10 years ago
11 years ago
10 years ago
10 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 = $(MODULEDIR)/$(MODULENAME).a
  16. BUNDLES = \
  17. $(MODULEDIR)/$(MODULENAME)_audiogain.a \
  18. $(MODULEDIR)/$(MODULENAME)_files.a \
  19. $(MODULEDIR)/$(MODULENAME)_miditools.a
  20. # ---------------------------------------------------------------------------------------------------------------------
  21. # Set objects
  22. OBJS = \
  23. $(OBJDIR)/_all.c.o \
  24. $(OBJDIR)/_data.cpp.o \
  25. $(OBJDIR)/audio-gain.c.o \
  26. $(OBJDIR)/bypass.c.o \
  27. $(OBJDIR)/cv-to-audio.c.o \
  28. $(OBJDIR)/lfo.c.o \
  29. $(OBJDIR)/midi-channel-filter.c.o \
  30. $(OBJDIR)/midi-channel-ab.c.o \
  31. $(OBJDIR)/midi-channelize.c.o \
  32. $(OBJDIR)/midi-gain.c.o \
  33. $(OBJDIR)/midi-join.c.o \
  34. $(OBJDIR)/midi-split.c.o \
  35. $(OBJDIR)/midi-to-cv.c.o \
  36. $(OBJDIR)/midi-through.c.o \
  37. $(OBJDIR)/midi-transpose.c.o \
  38. $(OBJDIR)/audio-file.cpp.o \
  39. $(OBJDIR)/bigmeter.cpp.o \
  40. $(OBJDIR)/midi-file.cpp.o \
  41. $(OBJDIR)/midi-pattern.cpp.o \
  42. $(OBJDIR)/notes.cpp.o \
  43. $(OBJDIR)/xycontroller.cpp.o
  44. OBJS_audiogain = \
  45. $(OBJDIR)/audio-gain.c.o
  46. OBJS_files = \
  47. $(OBJDIR)/audio-file.cpp.o \
  48. $(OBJDIR)/midi-file.cpp.o
  49. OBJS_miditools = \
  50. $(OBJDIR)/midi-channel-filter.c.o \
  51. $(OBJDIR)/midi-channel-ab.c.o \
  52. $(OBJDIR)/midi-channelize.c.o \
  53. $(OBJDIR)/midi-gain.c.o \
  54. $(OBJDIR)/midi-join.c.o \
  55. $(OBJDIR)/midi-split.c.o \
  56. $(OBJDIR)/midi-transpose.c.o
  57. # ---------------------------------------------------------------------------------------------------------------------
  58. # Include external plugins, if present
  59. ifeq ($(EXTERNAL_PLUGINS),true)
  60. ifneq (,$(wildcard external/Makefile.mk2))
  61. include external/Makefile.mk2
  62. else
  63. $(error External plugins build requested but submodule not present, cannot build)
  64. endif
  65. endif
  66. # ---------------------------------------------------------------------------------------------------------------------
  67. all: $(TARGETS)
  68. bundles: $(BUNDLES)
  69. # ---------------------------------------------------------------------------------------------------------------------
  70. clean:
  71. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP) $(TARGETS)
  72. debug:
  73. $(MAKE) DEBUG=true
  74. # ---------------------------------------------------------------------------------------------------------------------
  75. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  76. -@mkdir -p $(MODULEDIR)
  77. @echo "Creating $(MODULENAME).a"
  78. @rm -f $@
  79. @$(AR) crs $@ $^
  80. $(MODULEDIR)/$(MODULENAME)_audiogain.a: $(OBJS_audiogain)
  81. -@mkdir -p $(MODULEDIR)
  82. @echo "Creating $(MODULENAME)_audiogain.a"
  83. @rm -f $@
  84. @$(AR) crs $@ $^
  85. $(MODULEDIR)/$(MODULENAME)_files.a: $(OBJS_files)
  86. -@mkdir -p $(MODULEDIR)
  87. @echo "Creating $(MODULENAME)_files.a"
  88. @rm -f $@
  89. @$(AR) crs $@ $^
  90. $(MODULEDIR)/$(MODULENAME)_miditools.a: $(OBJS_miditools)
  91. -@mkdir -p $(MODULEDIR)
  92. @echo "Creating $(MODULENAME)_miditools.a"
  93. @rm -f $@
  94. @$(AR) crs $@ $^
  95. # ---------------------------------------------------------------------------------------------------------------------
  96. $(OBJDIR)/%.c.o: %.c
  97. -@mkdir -p $(OBJDIR)
  98. @echo "Compiling $<"
  99. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  100. $(OBJDIR)/%.cpp.o: %.cpp
  101. -@mkdir -p $(OBJDIR)
  102. @echo "Compiling $<"
  103. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  104. # ---------------------------------------------------------------------------------------------------------------------
  105. -include $(OBJS:%.o=%.d)
  106. # ---------------------------------------------------------------------------------------------------------------------