-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 1.44 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: llefranc <llefranc@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/02/08 15:19:33 by llefranc #+# #+# #
# Updated: 2023/05/24 17:04:39 by llefranc ### ########.fr #
# #
# **************************************************************************** #
NAME = taskmaster
SRCS = main.cpp ConfigParser.cpp ProgramBlock.cpp ProcInfo.cpp \
TaskMaster.cpp Logger.cpp Spawner.cpp
PATH_SRCS = src/
OBJS = $(SRCS:.cpp=.o)
CC = g++
FLAGS = -std=c++11 -Wall -Werror -Wextra
all : $(NAME)
$(NAME) : $(addprefix $(PATH_SRCS), $(OBJS)) $(HDRS)
$(CC) -o $(NAME) $(addprefix $(PATH_SRCS), $(OBJS)) $(FLAGS)
@echo "taskmaster is ready";
clean :
rm -rf $(addprefix $(PATH_SRCS), $(OBJS))
fclean : clean
rm -rf $(NAME)
re : fclean all
.PHONY : all clean fclean re
%.o : %.cpp
$(CC) $(FLAGS) -o $@ -c $<