-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (33 loc) · 1.55 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dlenskyi <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/11/23 19:04:27 by dlenskyi #+# #+# #
# Updated: 2018/12/11 11:28:23 by dlenskyi ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
FLAGS = -c -Wall -Wextra -Werror
СС = gcc
SRC = ft_printf.c print_spec_udi.c print_spec_p.c \
ft_ltoa_base_u.c ft_bzero.c ft_strdup.c set_color.c \
ft_ltoa_u.c ft_strjoin.c ft_strnew.c ft_itoa.c ft_strncmp.c \
validate_params.c ft_strchr.c ft_atoi.c ft_ftoa.c \
ft_strlen.c ft_toupper.c manage_spec.c manage_spec2.c \
ft_ltoa.c ft_strcpy.c ft_strsub.c print_spec_cs.c print_spec_box.c \
print_spec_nonvalid.c print_spec_f.c ft_strdel.c ft_memalloc.c
OBJ = $(SRC:.c=.o)
HEADER = -Ift_printf.h
all: $(NAME)
$(NAME):
@$(CC) $(FLAGS) $(HEADER) $(SRC)
@ar rc $(NAME) $(OBJ)
@ranlib $(NAME)
clean:
@/bin/rm -f $(OBJ)
fclean: clean
@/bin/rm -f $(NAME)
re: fclean all