-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
57 lines (46 loc) · 1.24 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
EXTRA_DIST =
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-I${top_srcdir}/src
AM_CFLAGS = ${my_CFLAGS} \
-ffunction-sections \
-fdata-sections
AM_LDFLAGS = \
-Wl,--gc-sections \
-Wl,--as-needed
bin_PROGRAMS = vdsotest
vdsotest_SOURCES = \
src/clock-monotonic.c \
src/clock-monotonic-coarse.c \
src/clock-monotonic-raw.c \
src/clock-tai.c \
src/clock-boottime.c \
src/clock-realtime.c \
src/clock-realtime-coarse.c \
src/compiler.h \
src/getcpu.c \
src/gettimeofday.c \
src/util.c \
src/util.h \
src/vdsotest.c \
src/vdsotest.h
vdsotest_LDADD = -lrt -ldl
bin_SCRIPTS = vdsotest-all vdsotest-bench
CLEANFILES += $(bin_SCRIPTS)
do_subst = sed -e 's,[@]vdsotest[@],$(bindir)/vdsotest,g'
vdsotest-all: src/vdsotest-all.in Makefile
$(do_subst) < $(srcdir)/src/vdsotest-all.in > vdsotest-all
chmod +x vdsotest-all
vdsotest-bench: src/vdsotest-bench.in Makefile
$(do_subst) < $(srcdir)/src/vdsotest-bench.in > vdsotest-bench
chmod +x vdsotest-bench
EXTRA_DIST += \
src/clock_getres_template.c \
src/clock_gettime_template.c \
src/vdsotest-all.in \
src/vdsotest-bench.in