-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 1.4 KB
/
Makefile
File metadata and controls
40 lines (31 loc) · 1.4 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: edegraev <edegraev@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/12/07 14:09:08 by edegraev #+# #+# #
# Updated: 2023/12/09 16:26:48 by edegraev ### ########.fr #
# #
# **************************************************************************** #
CC = cc
CFLAGS = -Wall -Werror -Wextra -L ft_printf -I./include
FTSERVER = src/server.c
FTCLIENT = src/client.c
SERVER = server
CLIENT = client
all: $(SERVER) $(CLIENT)
$(SERVER): $(FTSERVER)
$(MAKE) -C ./ft_printf
$(CC) $(CFLAGS) $^ ./ft_printf/libftprintf.a -o server
$(CLIENT): $(FTCLIENT)
$(MAKE) -C ./ft_printf
$(CC) $(CFLAGS) $^ ./ft_printf/libftprintf.a -o client
clean:
$(MAKE) clean -C ./ft_printf
fclean: clean
$(MAKE) fclean -C ./ft_printf
rm -f server && rm -f client
re: fclean all
.PHONY: all clean fclean re