-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 1.69 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
46
47
48
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kdenisov <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/14 11:15:44 by kdenisov #+# #+# #
# Updated: 2019/11/14 11:15:49 by kdenisov ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_gkrellm
DEPDIR := .deps
DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
CXX_FLAGS = -Wall -Wextra -Werror -I ~/.brew/Cellar/sfml/2.5.1/include
LINK_FLAGS = -lncurses -lsfml-graphics -lsfml-window -lsfml-system -L ~/.brew/Cellar/sfml/2.5.1/lib
SRC = main.cpp NCursesRenderer.cpp IMonitorModule.cpp IMonitorDisplay.cpp HostNameModule.cpp OSInfoModule.cpp \
DateTimeModule.cpp CPUModule.cpp RAMModule.cpp NetworkModule.cpp DisksModule.cpp GUIRender.cpp
OBJ = $(SRC:.cpp=.o)
all: $(NAME)
$(NAME): $(OBJ)
@clang++ $(LINK_FLAGS) -o $(NAME) $^
clean:
@rm -f $(OBJ)
@rm -rf ./$(DEPDIR)
fclean: clean
@rm -f $(NAME)
re: fclean all
%.o: %.cpp $(DEPDIR)/%.d | $(DEPDIR)
@clang++ -c $(DEPFLAGS) $(CXX_FLAGS) -o $@ $<
$(DEPDIR): ; @mkdir -p $@
DEPFILES := $(SRC:%.cpp=$(DEPDIR)/%.d)
$(DEPFILES):
include $(wildcard $(DEPFILES))