-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 1.34 KB
/
Makefile
File metadata and controls
41 lines (29 loc) · 1.34 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bschwitz <marvin@42lausanne.ch> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/02/15 14:31:51 by bschwitz #+# #+# #
# Updated: 2022/02/16 17:01:47 by bschwitz ### ########.fr #
# #
# **************************************************************************** #
NAME = minitalk.a
SRCS = server.c client.c libft_utils.c
OBJS = ${SRCS:.c=.o}
CC = gcc
UTILS = libft_utils.c
CFLAGS = -Wall -Werror -Wextra
${NAME}: ${OBJS}
@ar -rc ${NAME} ${OBJS}
@ranlib ${NAME}
${CC} ${CFLAGS} -fsanitize=address server.c ${UTILS} -o server
${CC} ${CFLAGS} -fsanitize=address client.c ${UTILS} -o client
all: ${NAME}
clean:
@rm -rf ${OBJS} a.out server client
fclean: clean
rm -rf ${NAME}
re: fclean all
.PHONY: all clean fclean re