summarylogtreecommitdiffstats
path: root/0002-as-needed.patch
blob: 81e396273fa546dfe7b4a017ae84963839b6109e (plain)
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
 src/Makefile.am                  |  2 +-
 src/ta_abstract/Makefile.am      |  8 ++++----
 src/ta_common/Makefile.am        |  8 ++++----
 src/ta_func/Makefile.am          |  8 ++++----
 src/tools/gen_code/Makefile.am   |  6 +++---
 src/tools/ta_regtest/Makefile.am | 12 ++++++------
 6 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 12bc5b6..b1a0c6b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,7 @@ libta_lib_la_SOURCES =
 libta_lib_la_LIBADD = \
   ta_abstract/libta_abstract.la \
   ta_func/libta_func.la \
-  ta_common/libta_common.la
+  ta_common/libta_common.la -lm
 
 libta_lib_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION)
 
diff --git a/src/ta_abstract/Makefile.am b/src/ta_abstract/Makefile.am
index cba69bb..4411234 100644
--- a/src/ta_abstract/Makefile.am
+++ b/src/ta_abstract/Makefile.am
@@ -38,12 +38,12 @@ libta_abstract_gc_la_SOURCES = $(libta_abstract_la_SOURCES)
 libta_abstract_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION)
 libta_abstract_gc_la_LDFLAGS = $(libta_abstract_la_LDFLAGS)
 
-libta_abstract_la_CPPFLAGS = -I../ta_common/ -Iframes/
+libta_abstract_la_CPPFLAGS = -I$(top_srcdir)/src/ta_common/ -Iframes/
 
 # The 'gc' version is a minimal version used to just to compile gen_code
 libta_abstract_gc_la_CPPFLAGS = -DTA_GEN_CODE $(libta_abstract_la_CPPFLAGS)
 
 libta_abstractdir=$(includedir)/ta-lib/
-libta_abstract_HEADERS = ../../include/ta_defs.h \
-	../../include/ta_libc.h \
-	../../include/ta_abstract.h
+libta_abstract_HEADERS = $(top_srcdir)/include/ta_defs.h \
+	$(top_srcdir)/include/ta_libc.h \
+	$(top_srcdir)/include/ta_abstract.h
diff --git a/src/ta_common/Makefile.am b/src/ta_common/Makefile.am
index 9454490..dcd9161 100644
--- a/src/ta_common/Makefile.am
+++ b/src/ta_common/Makefile.am
@@ -1,6 +1,6 @@
 
 noinst_LTLIBRARIES = libta_common.la
-AM_CPPFLAGS = -I../ta_common/
+AM_CPPFLAGS = -I$(top_srcdir)/src/ta_common/
 
 libta_common_la_SOURCES = ta_global.c \
 	ta_retcode.c \
@@ -9,7 +9,7 @@ libta_common_la_SOURCES = ta_global.c \
 libta_common_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION)
 
 libta_commondir=$(includedir)/ta-lib/
-libta_common_HEADERS = ../../include/ta_defs.h \
-	../../include/ta_libc.h \
-	../../include/ta_common.h
+libta_common_HEADERS = $(top_builddir)/include/ta_defs.h \
+	$(top_builddir)/include/ta_libc.h \
+	$(top_builddir)/include/ta_common.h
 
diff --git a/src/ta_func/Makefile.am b/src/ta_func/Makefile.am
index 79524ad..bfb9c5e 100644
--- a/src/ta_func/Makefile.am
+++ b/src/ta_func/Makefile.am
@@ -1,6 +1,6 @@
 
 noinst_LTLIBRARIES = libta_func.la
-AM_CPPFLAGS = -I../ta_common/
+AM_CPPFLAGS = -I$(top_srcdir)/src/ta_common/
 
 libta_func_la_SOURCES = ta_utility.c \
 	ta_ACCBANDS.c \
@@ -166,6 +166,6 @@ libta_func_la_SOURCES = ta_utility.c \
 libta_func_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION)
 
 libta_funcdir=$(includedir)/ta-lib/
-libta_func_HEADERS = ../../include/ta_defs.h \
-	../../include/ta_libc.h \
-	../../include/ta_func.h
+libta_func_HEADERS = $(top_builddir)/include/ta_defs.h \
+	$(top_builddir)/include/ta_libc.h \
+	$(top_builddir)/include/ta_func.h
diff --git a/src/tools/gen_code/Makefile.am b/src/tools/gen_code/Makefile.am
index cb839c2..023a368 100644
--- a/src/tools/gen_code/Makefile.am
+++ b/src/tools/gen_code/Makefile.am
@@ -5,10 +5,10 @@ noinst_PROGRAMS = gen_code
 
 gen_code_SOURCES = gen_code.c
 
-gen_code_CPPFLAGS = -I../../ta_common
-gen_code_LDFLAGS = -L../../ta_common -L../../ta_abstract -L../../ta_func
+gen_code_CPPFLAGS = -I$(top_srcdir)/src/ta_common
+gen_code_LDFLAGS = -L$(top_srcdir)/src/ta_common -L$(top_srcdir)/src/ta_abstract -L$(top_srcdir)/src/ta_func
 gen_code_LDADD = -lta_common -lta_abstract_gc -lta_func -lm
 
 all-local:
 	$(MAKE) $(AM_MAKEFLAGS) gen_code
-	cp gen_code ../../../bin
+	cp gen_code $(top_srcdir)/bin
diff --git a/src/tools/ta_regtest/Makefile.am b/src/tools/ta_regtest/Makefile.am
index 64229e2..2f25ef7 100644
--- a/src/tools/ta_regtest/Makefile.am
+++ b/src/tools/ta_regtest/Makefile.am
@@ -29,10 +29,10 @@ ta_regtest_SOURCES = ta_regtest.c \
 	ta_test_func/test_trange.c \
 	test_internals.c
 
-ta_regtest_CPPFLAGS = -I../../ta_func \
-		      -I../../ta_common/trio \
-		      -I../../ta_common/mt \
-		      -I../../ta_common \
-		      -I../../ta_abstract
-ta_regtest_LDFLAGS = -L../.. -lta_lib \
+ta_regtest_CPPFLAGS = -I$(top_srcdir)/src/ta_func \
+		      -I$(top_srcdir)/src/ta_common/trio \
+		      -I$(top_srcdir)/src/ta_common/mt \
+		      -I$(top_srcdir)/src/ta_common \
+		      -I$(top_srcdir)/src/ta_abstract
+ta_regtest_LDFLAGS = -L$(top_srcdir)/src -lta_lib \
 		     -lm
-- 
2.42.0