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

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
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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. OBJS_audiogain = \
  44. $(OBJDIR)/audio-gain.c.o
  45. OBJS_files = \
  46. $(OBJDIR)/audio-file.cpp.o \
  47. $(OBJDIR)/midi-file.cpp.o
  48. OBJS_miditools = \
  49. $(OBJDIR)/midi-channel-filter.c.o \
  50. $(OBJDIR)/midi-channel-ab.c.o \
  51. $(OBJDIR)/midi-channelize.c.o \
  52. $(OBJDIR)/midi-gain.c.o \
  53. $(OBJDIR)/midi-join.c.o \
  54. $(OBJDIR)/midi-split.c.o \
  55. $(OBJDIR)/midi-transpose.c.o
  56. # ---------------------------------------------------------------------------------------------------------------------
  57. # Include external plugins, if present
  58. ifeq ($(EXTERNAL_PLUGINS),true)
  59. ifneq (,$(wildcard external/Makefile.mk2))
  60. include external/Makefile.mk2
  61. else
  62. $(error External plugins build requested but submodule not present, cannot build)
  63. endif
  64. endif
  65. # ---------------------------------------------------------------------------------------------------------------------
  66. all: $(TARGETS)
  67. bundles: $(BUNDLES)
  68. # ---------------------------------------------------------------------------------------------------------------------
  69. clean:
  70. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP) $(TARGETS)
  71. debug:
  72. $(MAKE) DEBUG=true
  73. # ---------------------------------------------------------------------------------------------------------------------
  74. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  75. -@mkdir -p $(MODULEDIR)
  76. @echo "Creating $(MODULENAME).a"
  77. @rm -f $@
  78. @$(AR) crs $@ $^
  79. $(MODULEDIR)/$(MODULENAME)_audiogain.a: $(OBJS_audiogain)
  80. -@mkdir -p $(MODULEDIR)
  81. @echo "Creating $(MODULENAME)_audiogain.a"
  82. @rm -f $@
  83. @$(AR) crs $@ $^
  84. $(MODULEDIR)/$(MODULENAME)_files.a: $(OBJS_files)
  85. -@mkdir -p $(MODULEDIR)
  86. @echo "Creating $(MODULENAME)_files.a"
  87. @rm -f $@
  88. @$(AR) crs $@ $^
  89. $(MODULEDIR)/$(MODULENAME)_miditools.a: $(OBJS_miditools)
  90. -@mkdir -p $(MODULEDIR)
  91. @echo "Creating $(MODULENAME)_miditools.a"
  92. @rm -f $@
  93. @$(AR) crs $@ $^
  94. # ---------------------------------------------------------------------------------------------------------------------
  95. $(OBJDIR)/%.c.o: %.c
  96. -@mkdir -p $(OBJDIR)
  97. @echo "Compiling $<"
  98. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  99. $(OBJDIR)/%.cpp.o: %.cpp
  100. -@mkdir -p $(OBJDIR)
  101. @echo "Compiling $<"
  102. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  103. # ---------------------------------------------------------------------------------------------------------------------
  104. -include $(OBJS:%.o=%.d)
  105. # ---------------------------------------------------------------------------------------------------------------------