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 2.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
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
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. # ---------------------------------------------------------------------------------------------------------------------
  17. # Set objects
  18. OBJS = \
  19. $(OBJDIR)/_all.c.o \
  20. $(OBJDIR)/_data.cpp.o \
  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-channelize.c.o \
  26. $(OBJDIR)/midi-gain.c.o \
  27. $(OBJDIR)/midi-join.c.o \
  28. $(OBJDIR)/midi-split.c.o \
  29. $(OBJDIR)/midi-through.c.o \
  30. $(OBJDIR)/midi-transpose.c.o \
  31. $(OBJDIR)/audio-file.cpp.o \
  32. $(OBJDIR)/bigmeter.cpp.o \
  33. $(OBJDIR)/midi-file.cpp.o \
  34. $(OBJDIR)/midi-pattern.cpp.o \
  35. $(OBJDIR)/notes.cpp.o
  36. # ---------------------------------------------------------------------------------------------------------------------
  37. # Include external plugins, if present
  38. ifeq ($(EXTERNAL_PLUGINS),true)
  39. ifneq (,$(wildcard external/Makefile.mk2))
  40. include external/Makefile.mk2
  41. else
  42. $(error External plugins build requested but submodule not present, cannot build)
  43. endif
  44. endif
  45. # ---------------------------------------------------------------------------------------------------------------------
  46. all: $(TARGETS)
  47. # ---------------------------------------------------------------------------------------------------------------------
  48. clean:
  49. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP) $(TARGETS)
  50. debug:
  51. $(MAKE) DEBUG=true
  52. # ---------------------------------------------------------------------------------------------------------------------
  53. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  54. -@mkdir -p $(MODULEDIR)
  55. @echo "Creating $(MODULENAME).a"
  56. @rm -f $@
  57. @$(AR) crs $@ $^
  58. # ---------------------------------------------------------------------------------------------------------------------
  59. $(OBJDIR)/%.c.o: %.c
  60. -@mkdir -p $(OBJDIR)
  61. @echo "Compiling $<"
  62. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  63. $(OBJDIR)/%.cpp.o: %.cpp
  64. -@mkdir -p $(OBJDIR)
  65. @echo "Compiling $<"
  66. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  67. # ---------------------------------------------------------------------------------------------------------------------
  68. -include $(OBJS:%.o=%.d)
  69. # ---------------------------------------------------------------------------------------------------------------------