-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 1.51 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tunsal <tunsal@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/05 12:26:25 by tunsal #+# #+# #
# Updated: 2023/11/18 02:00:43 by tunsal ### ########.fr #
# #
# **************************************************************************** #
CLSRC = client.c
CLOBJ = $(CLSRC:.c=.o)
CLNAME = client
SVSRC = server.c
SVOBJ = $(SVSRC:.c=.o)
SVNAME = server
CC = gcc
CFLAGS = -Wall -Wextra -Werror
all: ft_printf/libftprintf.a $(CLNAME) $(SVNAME)
$(CLNAME): $(CLSRC)
$(CC) $(CFLAGS) $(CLSRC) -L ft_printf -lftprintf -o $(CLNAME)
$(SVNAME): $(SVSRC)
$(CC) $(CFLAGS) $(SVSRC) -L ft_printf -lftprintf -o $(SVNAME)
ft_printf/libftprintf.a:
make -C ./ft_printf all
clean:
make -C ./ft_printf clean
rm -f $(CLOBJ) $(SVOBJ)
fclean: clean
make -C ./ft_printf fclean
rm -f $(CLNAME) $(SVNAME)
re: fclean all
bonus: all