-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (39 loc) · 1.44 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
43
44
45
46
47
48
49
50
51
52
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rtroll <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/12/11 23:15:17 by rtroll #+# #+# #
# Updated: 2018/12/15 16:50:29 by rtroll ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = main.c\
ft_get_tetro.c\
ft_make_tetro.c\
list_stuff.c\
map_stuff.c\
solve.c
OBJ = $(SRC:.c=.o)
SRC_PATH = src/
SRC_POS = $(addprefix $(SRC_PATH), $(SRC))
INC = -I includes
LIBFT = src/libft/libft.a
CC = gcc
FLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME): $(LIBFT) $(OBJ)
@$(CC) $(FLAGS) $(OBJ) -o $(NAME) $(LIBFT)
$(OBJ): $(LIBFT)
@$(CC) $(FLAGS) -c $(SRC_POS) $(INC)
$(LIBFT):
@make -C ./src/libft/
clean:
@rm -f $(OBJ)
@make clean -C ./src/libft/
fclean: clean
@rm -f $(NAME)
@make fclean -C ./src/libft
re: fclean all