Skip to content

Instantly share code, notes, and snippets.

@zaerl
Created March 14, 2024 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaerl/01dcf45eccab86d6a6625a0ec43179a8 to your computer and use it in GitHub Desktop.
Save zaerl/01dcf45eccab86d6a6625a0ec43179a8 to your computer and use it in GitHub Desktop.
# Get all .c files from src/ directory
SRCS = $(shell find $(SRC_DIR) -type f -name "*.c")
# Generate corresponding .o file names
OBJS = $(patsubst $(SRC_DIR)/%, $(BUILD_DIR)/%, $(SRCS:.c=.o))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment