-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (20 loc) · 839 Bytes
/
Makefile
File metadata and controls
32 lines (20 loc) · 839 Bytes
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
NAME = so_long
SRC = ft_check_all.c ft_nbr.c ft_putnbr_base.c ft_strcmp.c ft_substr.c so_long.c\
ft_check.c ft_printf.c ft_putone.c ft_strdup.c ft_tablen.c\
ft_countnbr.c ft_putadress.c ft_putstr.c ft_strlcpy.c ft_unint.c\
ft_error.c ft_putchar.c ft_putstr_fd.c ft_strlen.c ft_strjoin.c\
ft_memset.c ft_putchar_fd.c ft_split.c ft_strnstr.c ft_flood.c ft_key.c ft_start.c ft_putimage.c
OBJ = $(SRC:.c=.o)
all : $(NAME)
CFLAGS = -Wall -Wextra -Werror
MLXFLAGS = -L/usr/include/minilibx-linux -lmlx -L/usr/lib -lXext -lX11 -lz
%.o : %.c
cc $(CFLAGS) -c $< -o $@
$(NAME) : $(OBJ)
cc $(CFLAGS) $(OBJ) -o $(NAME) $(MLXFLAGS)
clean :
@rm -fv $(OBJ)
fclean : clean
@rm -fv $(NAME)
re : fclean all
.PHONY : clean re all fclean