-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 1.29 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rlambert <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2014/11/03 11:25:08 by rlambert #+# #+# #
# Updated: 2017/01/19 17:34:46 by roblabla ### ########.fr #
# #
# **************************************************************************** #
CFLAGS += -Wall -Wextra -Werror -Ilibft/include/ -Iinclude/
SRCS = src/ping.c \
OBJS = $(SRCS:.c=.o)
RM = rm -f
all: ft_ping
libft/libft.a:
$(MAKE) -C libft/
.PHONY: libft/libft.a
ft_ping: libft/libft.a $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ -Llibft/ -lft
clean:
$(MAKE) -C libft/ clean
$(RM) $(SRV_OBJS)
$(RM) $(CLI_OBJS)
fclean: clean
$(MAKE) -C libft/ fclean
$(RM) ft_ping
re: fclean all
.PHONY: clean fclean re all