diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-19 03:10:42 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-19 03:10:42 -0300 |
| commit | a38868de0918da3979d2f7115f9164c979a48346 (patch) | |
| tree | aa896f769c143457340b4b61d9b13e4521c23731 /Makefile | |
Initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..027c0c6 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +TARGET := snake + +SRC = $(wildcard *.c) +OBJ = $(patsubst %.c, %.o, $(SRC)) + +CC := gcc + +CFLAGS := -Wall -Wextra -Werror -pedantic -std=c99 -g +LDFLAGS := + +$(TARGET): $(OBJ) + $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + +%.o:%.c + $(CC) -c $(CFLAGS) $< + +.PHONY: clean +clean: + rm -rv $(TARGET) $(OBJ) |
