-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 1.2 KB
/
Makefile
File metadata and controls
39 lines (28 loc) · 1.2 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: pzlatov <pzlatov@student.codam.nl> +#+ #
# +#+ #
# Created: 2024/11/16 13:50:25 by pzlatov #+# #+# #
# Updated: 2024/11/18 14:24:59 by pzlatov ######## odam.nl #
# #
# **************************************************************************** #
NAME = libftprintf.a
SOURCES = \
ft_printf.c ft_print_c.c ft_pr.c ft_print_p.c ft_print_s.c
OBJECTS = $(SOURCES:.c=.o)
CC = cc
CFLAGS = -Wall -Wextra -Werror
AR = ar
all: $(NAME)
$(NAME): $(OBJECTS)
$(AR) -rcs $@ $^
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
clean:
rm -f $(OBJECTS)
fclean: clean
rm -f $(NAME)
re: fclean all