From 8b45ca7ec2bda9e870a6a91de05d4ac8364f82f9 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sat, 20 May 2023 12:09:03 +0300 Subject: init --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fc927b7 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CC := gcc + +CFLAGS := -Wall -Wextra -Wpedantic +BIND := bin + +CSRCS = $(shell find . -type f -name '*.c') + +.PHONY: all clean + +all: $(CSRCS:%.c=$(BIND)/%) + +clean: + rm -rf $(BIND) + +$(BIND)/%: %.c + mkdir -p $(dir $@)p + $(CC) $(CFLAGS) $^ -o $@ -- cgit v1.2.3