-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 1.54 KB
/
Makefile
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
46
47
48
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mkhaing <0x@bontal.net> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/02 02:17:10 by mkhaing #+# #+# #
# Updated: 2023/11/20 07:40:38 by mkhaing ### ########.fr #
# #
# **************************************************************************** #
SERVER_SRC = server.c
CLIENT_SRC = client.c
BIN_ENCO_SRC = binary_converter.c
CC = cc
RM = rm -f
LIBFT_PATH = ./libft
LIBFT = $(LIBFT_PATH)/libft.a
CFLAGS = -Wall -Werror -Wextra
SERVER = server
CLIENT = client
all : $(SERVER) $(CLIENT)
$(LIBFT):
make -C $(LIBFT_PATH) all
$(SERVER): $(SERVER_SRC) $(BIN_ENCO_SRC) $(LIBFT)
$(CC) $(CFLAGS) $(SERVER_SRC) $(BIN_ENCO_SRC) $(LIBFT) -o $(SERVER)
$(CLIENT): $(CLIENT_SRC) $(BIN_ENCO_SRC) $(LIBFT)
$(CC) $(CFLAGS) $(CLIENT_SRC) $(BIN_ENCO_SRC) $(LIBFT) -o $(CLIENT)
clean :
make -C $(LIBFT_PATH) clean
$(RM) $(SERVER) $(CLIENT)
fclean : clean
make -C $(LIBFT_PATH) fclean
re : fclean all
.PHONY : all fclean clean re