forked from fannytavart/my_gkrellm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 796 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
45
NAME = my_gkrellm
CC = g++
CPPFLAGS += -Wall -Wextra
CPPFLAGS += -std=c++11 -lncurses -Iinclude/
CPPFLAGS += -Werror
MODULES_DIR = modules/
MODULES_FILES = ModuleDateTime.cpp \
ModuleRAM.cpp \
ModuleCPU.cpp \
ModuleNames.cpp \
ModuleNetwork.cpp \
ModuleOS.cpp
MODULES = $(addprefix $(MODULES_DIR), $(MODULES_FILES))
SRCS_DIR = src/
SRCS_FILES = AModuleText.cpp \
IMonitorDisplay.cpp \
IMonitorModule.cpp \
MonitorDisplay.cpp \
ModuleElem.cpp \
main.cpp \
$(MODULES)
SRCS = $(addprefix $(SRCS_DIR), $(SRCS_FILES))
OBJS = $(SRCS:.cpp=.o)
RM = rm -f
all: $(NAME)
$(NAME): $(OBJS)
$(CC) -o $(NAME) $(OBJS) -lncurses
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re