-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (58 loc) · 2.15 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
##
## ATOS PROJECT 2022
## MAKEFILE
## File description:
## Wow, such make, much file!
##
include ./Makefile.inc
LIB_FILE = libdemeter.so
GATHER_SRC =src/gatherers/gather_cgroup.c \
src/gatherers/gather_logs.c \
src/gatherers/gather_sel.c \
src/gatherers/gather_ib.c \
src/gatherers/gather_sstat.c \
src/gatherers/cgroup/get_from_files.c \
src/gatherers/logs/gather_system_logs.c \
src/gatherers/logs/sys_log_tools.c \
src/gatherers/logs/gather_slurm_logs.c \
src/gatherers/logs/slurm_logs_tools.c \
src/gatherers/logs/get_log_time.c \
src/gatherers/sel/handle_sel.c \
LOGER_SRC = src/loggers/logger.c \
src/loggers/cgroup/log_cgroup.c \
src/loggers/cgroup/unlog_cgroup.c \
src/loggers/send_elasticsearch.c \
src/loggers/send_logs_elasticsearch.c \
src/loggers/send_elasticsearch/json_formatters.c \
TOOLS_SRC = src/tools/is_log_empty.c \
src/tools/strptime.c \
src/tools/read_conf.c \
src/tools/linked_list.c \
src/tools/handle_log_level.c \
src/tools/remove_newline.c \
src/tools/append_str.c \
src/tools/getline_from_end.c \
src/tools/curl_tools.c \
src/tools/init/im_init.c \
src/tools/free/im_free.c \
src/tools/get/get_job_info.c \
src/tools/get/get_time_str.c \
src/tools/get/get_len_to_char.c \
src/tools/get/get_job_transfer_path.c \
src/tools/get/get_hostname.c \
src/tools/get/zgetline.c \
src/tools/get/get_rotate_time.c \
src/tools/nodeset/get_nodeset.c \
src/tools/nodeset/is_in_nodeset.c \
CC = gcc
CFLAGS ?= -std=gnu11 -Wall -g3 -gstrict-dwarf -fPIC -Iinclude -I$(SLURM_INC_DIR) -I$(IBMAD_INC_DIR) -Wl,-rpath=$(LIB_SLURM)
LDFLAGS ?= -shared -lcurl -libmad -libumad -L$(LIB_SLURM) -l$(LIB_SLURM_FULL)
all: $(LIB_FILE)
default: $(LIB_FILE)
$(LIB_FILE): $(GATHER_SRC) $(LOGER_SRC) $(TOOLS_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
send: all
scp $(LIB_FILE) my_vm:/home/compose_fake_taranis/shared/
clean:
rm -f $(LIB_FILE)
re: clean all