diff options
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) |
