-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
164 lines (147 loc) · 4.7 KB
/
Makefile.am
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# This file is part of nOS-V and is licensed under the terms contained in the COPYING file.
#
# Copyright (C) 2021-2023 Barcelona Supercomputing Center (BSC)
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I$(srcdir)/src/include -I$(srcdir)/api
SUBDIRS = . tests
# See info page of libtool "Updating version info"
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
lib_current = 0
lib_revision = 0
lib_age = 0
# Expected shared object numbers
lib_major = $(shell expr $(lib_current) - $(lib_age))
lib_suffix = $(lib_major).$(lib_age).$(lib_revision)
libnosv_la_CPPFLAGS=$(AM_CPPFLAGS) $(nosv_CPPFLAGS) $(libnuma_CPPFLAGS) $(pthreadnp_CPPFLAGS) $(ovni_CPPFLAGS) -DINSTALLED_CONFIG_DIR=\"$(datadir)\" $(asan_CPPFLAGS)
libnosv_la_CFLAGS=$(PTHREAD_CFLAGS) $(nosv_CFLAGS) $(asan_CFLAGS)
libnosv_la_LDFLAGS=$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(libnuma_LIBS) $(ovni_LIBS) $(shm_LIBS) $(asan_LDFLAGS) -lm -ldl
# Hardware counters
if HAVE_PAPI
libnosv_la_CFLAGS += $(papi_CFLAGS) -DHAVE_PAPI
libnosv_la_LDFLAGS += $(papi_LIBS)
endif
lib_LTLIBRARIES = libnosv.la
# Install the pkg-config file; the directory is set using
# PKG_INSTALLDIR in configure.ac
pkgconfig_DATA = nos-v.pc
libnosv_la_SOURCES = \
src/alpi.c \
src/bootstrap.c \
src/error.c \
src/config/config.c \
src/config/toml.c \
src/hardware/cpus.c \
src/hardware/locality.c \
src/hardware/pids.c \
src/hardware/threads.c \
src/hwcounters/cpuhwcounters.c \
src/hwcounters/hwcounters.c \
src/hwcounters/taskhwcounters.c \
src/hwcounters/threadhwcounters.c \
src/memory/backbone.c \
src/memory/slab.c \
src/memory/sharedmemory.c \
src/monitoring/cpumonitor.c \
src/monitoring/cpustats.c \
src/monitoring/monitoring.c \
src/scheduler/governor.c \
src/scheduler/scheduler.c \
src/support/affinity.c \
src/support/barrier.c \
src/support/mutex.c \
src/system/tasks.c
if HAVE_OVNI
libnosv_la_SOURCES += \
src/instr.c
endif
if HAVE_PAPI
libnosv_la_SOURCES += \
src/hwcounters/papi/papicpuhwcounters.c \
src/hwcounters/papi/papihwcounters.c \
src/hwcounters/papi/papitaskhwcounters.c \
src/hwcounters/papi/papithreadhwcounters.c
endif
include_HEADERS = \
api/nosv.h
noinst_HEADERS = \
src/include/defaults.h \
src/include/common.h \
src/include/compat.h \
src/include/compiler.h \
src/include/instr.h \
src/include/nosv-internal.h \
src/include/config/config.h \
src/include/config/configspec.h \
src/include/config/toml.h \
src/include/generic/arch.h \
src/include/generic/arch/arm64.h \
src/include/generic/arch/power.h \
src/include/generic/arch/x86.h \
src/include/generic/accumulator.h \
src/include/generic/bitset.h \
src/include/generic/chrono.h \
src/include/generic/clock.h \
src/include/generic/cpuset.h \
src/include/generic/condvar.h \
src/include/generic/futex.h \
src/include/generic/heap.h \
src/include/generic/hashfunction.h \
src/include/generic/hashtable.h \
src/include/generic/list.h \
src/include/generic/mutex.h \
src/include/generic/proc.h \
src/include/generic/ringbuffer.h \
src/include/generic/signalmutex.h \
src/include/generic/spinlock.h \
src/include/generic/tree.h \
src/include/generic/_null.h \
src/include/hardware/cpus.h \
src/include/hardware/eventqueue.h \
src/include/hardware/locality.h \
src/include/hardware/pids.h \
src/include/hardware/threads.h \
src/include/hwcounters/cpuhwcounters.h \
src/include/hwcounters/hwcounters.h \
src/include/hwcounters/supportedhwcounters.h \
src/include/hwcounters/taskhwcounters.h \
src/include/hwcounters/threadhwcounters.h \
src/include/memory/asan.h \
src/include/memory/backbone.h \
src/include/memory/sharedmemory.h \
src/include/memory/slab.h \
src/include/monitoring/cpumonitor.h \
src/include/monitoring/cpustats.h \
src/include/monitoring/monitoring.h \
src/include/monitoring/monitoringsupport.h \
src/include/monitoring/taskmonitor.h \
src/include/monitoring/taskstats.h \
src/include/monitoring/tasktypestats.h \
src/include/scheduler/cpubitset.h \
src/include/scheduler/dtlock.h \
src/include/scheduler/governor.h \
src/include/scheduler/mpsc.h \
src/include/scheduler/scheduler.h \
src/include/scheduler/spsc.h \
src/include/support/affinity.h \
src/include/system/taskgroup.h \
src/include/system/tasks.h \
tests/common/tap.h \
tests/common/utils.h \
tests/include/test.h \
tests/include/unit.h
if HAVE_PAPI
noinst_HEADERS += \
src/include/hwcounters/papi/papicpuhwcounters.h \
src/include/hwcounters/papi/papihwcounters.h \
src/include/hwcounters/papi/papitaskhwcounters.h \
src/include/hwcounters/papi/papithreadhwcounters.h
endif
subincludedir = $(includedir)/nosv
subinclude_HEADERS = \
api/nosv/affinity.h \
api/nosv/alpi.h \
api/nosv/error.h \
api/nosv/hwinfo.h
# Install config file
data_DATA = nosv.toml
EXTRA_DIST = nosv.toml