-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
103 lines (75 loc) · 3.12 KB
/
Makefile.am
File metadata and controls
103 lines (75 loc) · 3.12 KB
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
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I${srcdir} -I${builddir}
AM_CFLAGS = ${PIPE}
AM_CXXFLAGS = -Wextra -Wall ${PIPE} $(CXXTEMPLFLAGS)
if WANT_DEBUG
LIB_G=libxthread_g.la
else
LIB_G=
endif
libxthread_LTLIBRARIES = libxthread.la ${LIB_G}
libxthreaddir = $(libdir)
CXXTEMPLFLAGS =
### --no-exceptions ## -fno-implicit-templates
libxthread_la_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
libxthread_g_la_CFLAGS = ${PIPE}
libxthread_la_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
## --no-rtti
libxthread_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic ${PIPE} ${CXXTEMPLFLAGS}
libxthread_g_la_LDFLAGS = -g -Wextra -Wall -pedantic
# -fdiagnostics-show-option
libxthread_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DDEBUG_THREADS
SOURCES = xthread.cc
libxthread_la_SOURCES = $(SOURCES)
libxthread_g_la_SOURCES = $(SOURCES)
# $(RT_LIBS) # librt is for the POSIX realtime extensions. I think it's only needed on Solaris.
libxthread_la_LIBADD = $(PTHREAD_LIBS)
libxthread_g_la_LIBADD = $(PTHREAD_LIBS)
# where should the header go?
libxthread_includedir =$(includedir)/xthread/
libxthread_include_HEADERS = xthread.h tlsize.inc
nodist_libxthread_include_HEADERS = xthread_config.h
if WANT_DEBUG
TESTS = example-s-g example-s-r example-d-g example-d-r example2-s-g example2-s-r example2-d-g example2-d-r
else
TESTS = example-s-r example-d-r example2-s-r example2-d-r
endif
check_PROGRAMS = $(TESTS)
examplesources = example.cc
example_s_r_SOURCES = $(examplesources)
example_s_g_SOURCES = $(examplesources)
example_d_r_SOURCES = $(examplesources)
example_d_g_SOURCES = $(examplesources)
example_s_r_CFLAGS = -O3 -fomit-frame-pointer ${AM_CFLAGS}
example_d_r_CFLAGS = -O3 -fomit-frame-pointer ${AM_CFLAGS}
example_s_r_LDFLAGS = -static ${AM_LDFLAGS}
example_s_g_LDFLAGS = -static ${AM_LDFLAGS}
example_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${AM_CXXFLAGS}
example_s_g_CXXFLAGS = -g -pedantic ${AM_CXXFLAGS}
example_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${AM_CXXFLAGS}
example_d_g_CXXFLAGS = -g -pedantic ${AM_CXXFLAGS}
example_s_r_LDADD = libxthread.la
example_s_g_LDADD = libxthread_g.la
example_d_r_LDADD = libxthread.la
example_d_g_LDADD = libxthread_g.la
example_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DDEBUG_THREADS
example_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DDEBUG_THREADS
example2sources = example2.cc
example2_s_r_SOURCES = $(example2sources)
example2_s_g_SOURCES = $(example2sources)
example2_d_r_SOURCES = $(example2sources)
example2_d_g_SOURCES = $(example2sources)
example2_s_r_CFLAGS = -O3 -fomit-frame-pointer ${AM_CFLAGS}
example2_d_r_CFLAGS = -O3 -fomit-frame-pointer ${AM_CFLAGS}
example2_s_r_LDFLAGS = -static ${AM_LDFLAGS}
example2_s_g_LDFLAGS = -static ${AM_LDFLAGS}
example2_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${AM_CXXFLAGS}
example2_s_g_CXXFLAGS = -g -pedantic ${AM_CXXFLAGS}
example2_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${AM_CXXFLAGS}
example2_d_g_CXXFLAGS = -g -pedantic ${AM_CXXFLAGS}
example2_s_r_LDADD = libxthread.la
example2_s_g_LDADD = libxthread_g.la
example2_d_r_LDADD = libxthread.la
example2_d_g_LDADD = libxthread_g.la
example2_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DDEBUG_THREADS
example2_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DDEBUG_THREADS