-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (34 loc) · 1.51 KB
/
Makefile
File metadata and controls
39 lines (34 loc) · 1.51 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: achane-l <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/07/14 12:04:03 by achane-l #+# #+# #
# Updated: 2021/07/14 12:04:16 by achane-l ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = type_int_conv.c type_hex_conv.c type_char_conv.c ft_printf.c func_utils.c flags_func.c ft_printf.h
BONUS = type_int_conv_bonus.c type_hex_conv_bonus.c type_char_conv_bonus.c ft_printf_bonus.c func_utils_bonus.c \
flags_func_bonus.c ft_printf_bonus.h
OBJS = ${SRCS:.c=.o}
OBJBONUS = ${BONUS:.c=.o}
HEADER = includes
FOLDER = srcs
CC = gcc
CFLAGS = -Wall -Wextra -Werror
RM = rm -f
all: ${NAME}
${NAME}: ${OBJS}
ar -rcs ${NAME} ${OBJS}
bonus: ${OBJBONUS}
ar -rcs ${NAME} ${OBJBONUS}
%.o: %.c
${CC} -c ${CFLAGS} -o $@ $< -I ${HEADER}
clean:
${RM} *.o
fclean: clean
${RM} ${NAME}
re : fclean all