-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (52 loc) · 1.88 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
56
57
58
59
60
61
62
63
64
65
66
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ademenet <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/12/21 17:34:59 by gvillat #+# #+# #
# Updated: 2016/01/13 17:12:47 by gvillat ### ########.fr #
# #
# **************************************************************************** #
.PHONY: all, clean, fclean, re
SRC_PATH = ./src/
SRC_NAME = check_file.c\
createmap.c\
points_assignment.c\
initfile.c\
main.c
OBJ = $(SRC_NAME:.c=.o) $(TEST_NAME:.c=.o) $(LIB_NAME:.c=.o)
LIB_PATH = ./lib/
LIB_NAME = ft_putstr.c\
ft_putchar.c\
ft_putnbr.c\
ft_sqrt.c\
ft_strlen.c\
ft_round.c\
ft_memset.c\
ft_strsetnew.c\
ft_abs.c
INC_PATH = ./inc/
INC_NAME = fillit.h\
NAME = fillit
CC = gcc
CFLAGS = -Wall -Werror -Wextra
SRC = $(addprefix $(SRC_PATH),$(SRC_NAME))
LIB = $(addprefix $(LIB_PATH),$(LIB_NAME))
INC = $(addprefix $(INC_PATH),$(INC_NAME))
all: $(NAME)
$(NAME): $(SRC)
@$(CC) $(CFLAGS) $(SRC) $(LIB) -I $(INC) -o $(NAME)
@echo "\033[1;33mCompilation \t \033[0;32m[OK]\033[0m"
clean:
@rm -rf $(OBJ)
@echo "\033[1;33mCleaning obj \t \033[0;32m[OK]\033[0m"
fclean: clean
@rm -rf $(NAME)
@echo "\033[1;33mCleaning exec \t \033[0;32m[OK]\033[0m"
re: fclean all
norme:
@norminette $(SRC)
@norminette $(LIB)
@echo "\033[1;33mNorminette check \033[0;32m[OK]\033[0m"