-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 1.2 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pmontiel <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/10/22 11:30:52 by pmontiel #+# #+# #
# Updated: 2022/02/10 14:01:46 by rcheiko ### ########.fr #
# #
# **************************************************************************** #
NAME = ircserv
SRCS = main.cpp
OBJS = ${SRCS:.cpp=.o}
CC = clang++
CFLAGS = -Wall -Wextra -Werror -std=c++98 -I./includes -g
%.o: %.cpp
$(CC) $(CFLAGS) -c -o $@ $^
RM = rm -f
all: ${NAME}
$(NAME): ${OBJS}
${CC} -o ${NAME} ${OBJS}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all