diff options
| author | Blake Romero <blake@blkrom.com> | 2024-10-06 00:34:22 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-10-30 10:16:05 +0000 |
| commit | 33e9dca022909244cc0f545e841eab3c38024427 (patch) | |
| tree | 9f9489e844c24386772cab95682bab911d7b7e32 /Makefile | |
| parent | 137e622ae79645ab2ab0cb835801a55b196490a0 (diff) | |
Add Makefile & command args to main
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6dd9909 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +# Compiler options +CC=gcc +CFLAGS=-std=c17 -Wall -Werror -g + +# Directory paths +src=src +bin=bin + +# Directives +.PHONY: build +build: $(bin)/ctodo + +.PHONY: clean +clean: + -rm -r $(bin) $(obj) + +# Build executable +$(bin)/ctodo: $(bin) $(src)/main.c + $(CC) $(CFLAGS) -o $@ $(filter-out $<,$^) + +# Make bin directory +$(bin): + mkdir $@ + + + |
