Audio and MIDI file render through 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.

73 lines
1.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for ACE #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.base.mk
  7. # --------------------------------------------------------------
  8. # Project name, used for binaries
  9. NAME = kuriborosu
  10. # --------------------------------------------------------------
  11. # Files to build
  12. FILES = \
  13. kuriborosu.c
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. # Basic setup
  16. TARGET_DIR = ../bin
  17. BUILD_DIR = ../build/$(NAME)
  18. # BASE_FLAGS += -I.
  19. BASE_FLAGS += $(shell pkg-config --cflags carla-host-plugin sndfile)
  20. LINK_FLAGS += $(shell pkg-config --libs carla-host-plugin sndfile)
  21. # BUILD_C_FLAGS += -I.
  22. # BUILD_CXX_FLAGS += -I.
  23. # ---------------------------------------------------------------------------------------------------------------------
  24. # Set files to build
  25. OBJS = $(FILES:%=$(BUILD_DIR)/%.o)
  26. # ---------------------------------------------------------------------------------------------------------------------
  27. # Default build target
  28. TARGET = $(TARGET_DIR)/$(NAME)
  29. all: build
  30. build: $(TARGET)
  31. # ---------------------------------------------------------------------------------------------------------------------
  32. # Build commands
  33. $(TARGET): $(OBJS)
  34. -@mkdir -p $(shell dirname $@)
  35. @echo "Linking $(NAME)"
  36. $(SILENT)$(CXX) $^ $(LINK_FLAGS) -o $@
  37. $(BUILD_DIR)/%.c.o: %.c
  38. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  39. @echo "Compiling $<"
  40. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  41. $(BUILD_DIR)/%.cpp.o: %.cpp
  42. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  43. @echo "Compiling $<"
  44. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  45. clean:
  46. rm -rf $(BUILD_DIR)
  47. # ---------------------------------------------------------------------------------------------------------------------
  48. -include $(OBJS:%.o=%.d)
  49. # ---------------------------------------------------------------------------------------------------------------------