-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (31 loc) · 1.3 KB
/
Makefile
File metadata and controls
45 lines (31 loc) · 1.3 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
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: obult <obult@student.codam.nl> +#+ #
# +#+ #
# Created: 2020/11/04 16:49:28 by obult #+# #+# #
# Updated: 2021/02/12 13:54:39 by oswin ######## odam.nl #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ./ft_printf.c ./ft_utils.c ./ft_alpha.c \
./ft_pointer.c ./ft_putnbr.c ./ft_va_utils.c ./ft_decimal.c
OBJS = ${SRCS:.c=.o}
CC = gcc
RM = rm -f
HEADER = -I
CFLAGS = -Wall -Werror -Wextra
LIB = ar -rsc
all: ${NAME}
.c.o:
${CC} -c ${CFLAGS} $< -o ${<:.c=.o}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
${NAME}: ${OBJS}
${LIB} $@ $^
.PHONY: all clean fclean re