-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.93 KB
/
Makefile
File metadata and controls
48 lines (38 loc) · 1.93 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rklein <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/01/16 09:51:37 by rklein #+# #+# #
# Updated: 2020/02/04 16:37:26 by rklein ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
FLAGS = -Wall -Wextra -Werror -c
SRC = src/ft_printf.c src/ft_misc.c src/ft_base_print.c \
src/ft_char_print.c src/ft_double_print.c src/ft_e_print.c \
src/ft_g_print.c src/ft_id_memory.c src/ft_int_print.c \
src/ft_uint_print.c src/ft_double_flags.c src/ft_int_flags.c \
src/ft_uint_flags.c
LIB = libft/ft_atoi.c libft/ft_isdigit.c libft/ft_putstr.c \
libft/ft_strclr.c libft/ft_strcmp.c libft/ft_strdup.c \
libft/ft_strjoin.c libft/ft_strlen.c libft/ft_strnew.c \
libft/ft_strsub.c libft/ft_toupper.c
OBJ = ft_printf.o ft_misc.o ft_base_print.o ft_char_print.o ft_double_print.o \
ft_e_print.o ft_g_print.o ft_id_memory.o ft_int_print.o ft_uint_print.o \
ft_double_flags.o ft_int_flags.o ft_uint_flags.o ft_atoi.o ft_isdigit.o \
ft_putstr.o ft_strclr.o ft_strcmp.o ft_strdup.o ft_strjoin.o \
ft_strlen.o ft_strnew.o ft_strsub.o ft_toupper.o
INC = ./
all: $(NAME)
$(NAME):
gcc $(FLAGS) $(SRC) $(LIB) -I $(INC)
ar rc $(NAME) $(OBJ)
ranlib $(NAME)
clean:
rm -f $(OBJ) $(OBFLIB)
fclean: clean
rm -f $(NAME)
re: fclean all