-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.22 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ogenc <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/02/27 17:13:52 by ogenc #+# #+# #
# Updated: 2023/02/27 17:14:08 by ogenc ### ########.fr #
# #
# **************************************************************************** #
NAME = program
SERVER = server
CLIENT = client
CC = gcc
LIB = ./utils.c
CFLAGS = -Wall -Werror -Wextra
all: $(SERVER) $(CLIENT)
$(NAME): all
$(SERVER):
$(CC) $(CFLAGS) server.c $(LIB) -o $(SERVER)
$(CLIENT):
$(CC) $(CFLAGS) client.c $(LIB) -o $(CLIENT)
clean:
rm -rf $(SERVER) $(CLIENT)
fclean: clean
re: fclean all
.PHONY: all flean clean re