-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 1.38 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jalwahei <jalwahei@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/25 15:37:38 by jalwahei #+# #+# #
# Updated: 2022/12/12 15:15:03 by jalwahei ### ########.fr #
# #
# **************************************************************************** #
NAME = client
NAME1 = server
SRC = client.c inc/ft_atoi.c
SRC1 = server.c printf/libftprintf.a
OBJ = $(SRC:.c=.o)
OBJ1 = $(SRC1:.c=.o)
CC = gcc
CFLAGS = -Wall -Wextra -Werror
all: $(NAME) $(NAME1)
$(NAME) : $(OBJ)
@make -C ./printf
$(CC) $(CFLAGS) $(OBJ) -o $(NAME) printf/libftprintf.a -o $@
$(NAME1) : $(OBJ1)
$(CC) $(CFLAGS) $(OBJ1) -o $(NAME1) printf/libftprintf.a -o $@
clean:
rm -f *.o
rm -f ./inc/*.o
rm -f ./printf/*.o
fclean: clean
rm -f client server
rm -f ./printf/libftprintf.a
re: fclean all