-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: akittie <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/25 18:41:55 by akittie #+# #+# #
# Updated: 2019/11/25 19:31:23 by akittie ### ########.fr #
# #
# **************************************************************************** #
.PHONY: all $(NAME) clean fclean re
NAME = fillit
SRC = main.c\
check.c\
fill_tools.c\
get_tetr.c\
utils.c\
OBJ = $(subst .c,.o,$(SRC))
CC = gcc
CFLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME): $(OBJ)
@$(CC) $(OBJ) -o $(NAME)
$(OBJ): %.o: %.c
@$(CC) $(CFLAGS) -c -I./ $< -o $@
clean:
@rm -rf $(OBJ)
fclean: clean
@rm -rf $(NAME)
re: fclean all