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