forked from vtolochk/SysMonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 756 Bytes
/
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
.PHONY: all clean fclean re
NAME = ft_gkrellm
SRCS = main.cpp \
UserHost.class.cpp \
DateTime.class.cpp \
OSInfo.class.cpp \
CPU.class.cpp \
RAM.class.cpp \
TerminalMonitor.class.cpp \
Network.class.cpp \
HEADERS = IMonitorDisplay.hpp \
IMonitorModule.hpp \
UserHost.class.hpp \
DateTime.class.hpp \
OSInfo.class.hpp \
CPU.class.hpp \
RAM.class.hpp \
TerminalMonitor.class.hpp \
Network.class.hpp \
OBJ = $(SRCS:.cpp=.o)
CFLAGS = -std=c++98 -Wall -Werror -Wextra
CC = clang++
all: $(NAME) $(OBJ)
$(NAME): $(OBJ) $(HEADERS)
$(CC) $(CFLAGS) -lncurses $(OBJ) -o $(NAME)
%.o: %.cpp $(HEADERS)
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all