-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 1.17 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ybouddou <ybouddou@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/06/23 20:10:15 by ybouddou #+# #+# #
# Updated: 2021/06/26 11:31:35 by ybouddou ### ########.fr #
# #
# **************************************************************************** #
NAME = sudoku
CC = gcc
CFLAGS = -Wall -Wextra -Werror
LIB = Libft/libft.a
SRC = sudoku.c\
printing.c\
tools.c\
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
@$(CC) $(OBJ) $(LIB) -o $(NAME)
%.o: %.c
@$(CC) $(CFLAGS) -c $^ -o $@
clean:
@rm -rf $(OBJ)
fclean: clean
@rm -rf $(NAME)
re: fclean all