-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
51 lines (40 loc) · 1.32 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
ACLOCAL_AMFLAGS=-I m4
lib_LTLIBRARIES = libinterflop_bitmask.la libinterflop_bitmask_no-tls.la
if ENABLE_LTO
LTO_FLAGS = -flto
else
LTO_FLAGS =
endif
if ENABLE_WARNINGS
WARNING_FLAGS = -Wall -Wextra -Wno-varargs
else
WARNING_FLAGS =
endif
# Backend version with TLS enabled
libinterflop_bitmask_la_SOURCES = interflop_bitmask.c
libinterflop_bitmask_la_CFLAGS = \
-I@INTERFLOP_INCLUDEDIR@ \
-fno-stack-protector $(LTO_FLAGS) -O3 \
-DRNG_THREAD_SAFE \
$(LTO_FLAGS) -O3 \
$(WARNING_FLAGS)
libinterflop_bitmask_la_LDFLAGS = $(LTO_FLAGS) -O3
libinterflop_bitmask_la_LIBADD = \
@INTERFLOP_LIBDIR@/libinterflop_rng.la \
@INTERFLOP_LIBDIR@/libinterflop_fma.la \
@INTERFLOP_LIBDIR@/libinterflop_logger.la \
@INTERFLOP_LIBDIR@/libinterflop_stdlib.la
# Backend version with TLS disabled
libinterflop_bitmask_no_tls_la_SOURCES = interflop_bitmask.c
libinterflop_bitmask_no_tls_la_CFLAGS = \
-I@INTERFLOP_INCLUDEDIR@ \
-fno-stack-protector $(LTO_FLAGS) -O3 \
$(LTO_FLAGS) -O3 \
$(WARNING_FLAGS)
libinterflop_bitmask_no_tls_la_LIBADD = \
@INTERFLOP_LIBDIR@/libinterflop_rng.la \
@INTERFLOP_LIBDIR@/libinterflop_fma.la \
@INTERFLOP_LIBDIR@/libinterflop_logger.la \
@INTERFLOP_LIBDIR@/libinterflop_stdlib.la
includesdir=$(includedir)/interflop
includes_HEADERS= interflop_bitmask.h