-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 1.38 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: moboustt <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/12/19 14:20:45 by moboustt #+# #+# #
# Updated: 2019/12/20 19:56:22 by moboustt ### ########.fr #
# #
# **************************************************************************** #
# -*- This is a MakeFile -*-
NAME= libftprintf.a
_CC= gcc
_CFLAGS=-Wall -g -Wextra -Werror
_SOURCES= lib.c ft_printf.c ft_strlen.c integers.c pointers.c string.c char.c ft_itoa.c get_flags.c printf_tools.c unsigned.c converter.c hexa.c percent.c printf_tools2.c
_OBJ= *.o
all: $(NAME)
$(NAME): $(_SOURCES)
@$(_CC) $(_CFLAGS) -c $(_SOURCES)
@ar rc $(NAME) *.o
clean:
@rm -rf *.o
@echo "Makefile : Cleaning .o files..."
fclean: clean
@rm -rf $(NAME) *.a
@echo "Makefile : Clean .a files..."
re: fclean all