sedna 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. data/{CHANGES → CHANGES.rdoc} +9 -0
  2. data/{README → README.rdoc} +23 -25
  3. data/Rakefile +32 -9
  4. data/ext/{extconf.rb → sedna/extconf.rb} +33 -21
  5. data/ext/{sedna.c → sedna/sedna.c} +48 -40
  6. data/test/sedna_test.rb +9 -9
  7. data/vendor/sedna/AUTHORS +18 -0
  8. data/vendor/sedna/COPYRIGHT +90 -0
  9. data/vendor/sedna/LICENSE +202 -0
  10. data/vendor/sedna/Makefile.include +423 -0
  11. data/vendor/sedna/Makefile.platform +31 -0
  12. data/vendor/sedna/depend.sed +48 -0
  13. data/vendor/sedna/driver/c/Makefile +98 -0
  14. data/vendor/sedna/driver/c/libsedna.c +1998 -0
  15. data/vendor/sedna/driver/c/libsedna.h +199 -0
  16. data/vendor/sedna/driver/c/sednamt.def +21 -0
  17. data/vendor/sedna/driver/c/sp_defs.h +186 -0
  18. data/vendor/sedna/kernel/common/FastXptrHash.cpp +101 -0
  19. data/vendor/sedna/kernel/common/IntHash.h +314 -0
  20. data/vendor/sedna/kernel/common/IntList.h +224 -0
  21. data/vendor/sedna/kernel/common/Makefile +30 -0
  22. data/vendor/sedna/kernel/common/SSMMsg.cpp +459 -0
  23. data/vendor/sedna/kernel/common/SSMMsg.h +142 -0
  24. data/vendor/sedna/kernel/common/XptrHash.h +435 -0
  25. data/vendor/sedna/kernel/common/argtable.c +972 -0
  26. data/vendor/sedna/kernel/common/argtable.h +896 -0
  27. data/vendor/sedna/kernel/common/base.cpp +339 -0
  28. data/vendor/sedna/kernel/common/base.h +226 -0
  29. data/vendor/sedna/kernel/common/bit_set.cpp +157 -0
  30. data/vendor/sedna/kernel/common/bit_set.h +55 -0
  31. data/vendor/sedna/kernel/common/commutil.h +67 -0
  32. data/vendor/sedna/kernel/common/config.h +62 -0
  33. data/vendor/sedna/kernel/common/counted_ptr.h +74 -0
  34. data/vendor/sedna/kernel/common/errdbg/ErrorCodes.java +1056 -0
  35. data/vendor/sedna/kernel/common/errdbg/Makefile +34 -0
  36. data/vendor/sedna/kernel/common/errdbg/assert.c +133 -0
  37. data/vendor/sedna/kernel/common/errdbg/d_printf.c +150 -0
  38. data/vendor/sedna/kernel/common/errdbg/d_printf.h +91 -0
  39. data/vendor/sedna/kernel/common/errdbg/error.codes +1743 -0
  40. data/vendor/sedna/kernel/common/errdbg/error_codes.c +531 -0
  41. data/vendor/sedna/kernel/common/errdbg/error_codes.h +549 -0
  42. data/vendor/sedna/kernel/common/errdbg/error_codes_scm.scm +527 -0
  43. data/vendor/sedna/kernel/common/errdbg/event_log.c +956 -0
  44. data/vendor/sedna/kernel/common/errdbg/event_log.h +226 -0
  45. data/vendor/sedna/kernel/common/errdbg/exceptions.cpp +155 -0
  46. data/vendor/sedna/kernel/common/errdbg/exceptions.h +559 -0
  47. data/vendor/sedna/kernel/common/errdbg/gen_error_codes +0 -0
  48. data/vendor/sedna/kernel/common/errdbg/gen_error_codes.c +345 -0
  49. data/vendor/sedna/kernel/common/gmm.cpp +192 -0
  50. data/vendor/sedna/kernel/common/gmm.h +29 -0
  51. data/vendor/sedna/kernel/common/ipc_ops.cpp +435 -0
  52. data/vendor/sedna/kernel/common/ipc_ops.h +51 -0
  53. data/vendor/sedna/kernel/common/lfsGlobals.h +12 -0
  54. data/vendor/sedna/kernel/common/lm_base.h +90 -0
  55. data/vendor/sedna/kernel/common/mmgr/Makefile +11 -0
  56. data/vendor/sedna/kernel/common/mmgr/aset.c +1185 -0
  57. data/vendor/sedna/kernel/common/mmgr/mcxt.c +741 -0
  58. data/vendor/sedna/kernel/common/mmgr/memnodes.h +70 -0
  59. data/vendor/sedna/kernel/common/mmgr/memutils.h +145 -0
  60. data/vendor/sedna/kernel/common/mmgr/se_alloc.h +321 -0
  61. data/vendor/sedna/kernel/common/mmgr/track.c +214 -0
  62. data/vendor/sedna/kernel/common/pping.cpp +672 -0
  63. data/vendor/sedna/kernel/common/pping.h +119 -0
  64. data/vendor/sedna/kernel/common/rcv_test.cpp +273 -0
  65. data/vendor/sedna/kernel/common/rcv_test.h +19 -0
  66. data/vendor/sedna/kernel/common/sedna.c +128 -0
  67. data/vendor/sedna/kernel/common/sedna.h +49 -0
  68. data/vendor/sedna/kernel/common/sedna_ef.h +52 -0
  69. data/vendor/sedna/kernel/common/sm_vmm_data.h +144 -0
  70. data/vendor/sedna/kernel/common/sp.c +93 -0
  71. data/vendor/sedna/kernel/common/sp.h +36 -0
  72. data/vendor/sedna/kernel/common/st/Makefile +20 -0
  73. data/vendor/sedna/kernel/common/st/os_linux/stacktrace.c +213 -0
  74. data/vendor/sedna/kernel/common/st/os_nt/stacktrace.c +338 -0
  75. data/vendor/sedna/kernel/common/st/os_other/stacktrace.c +39 -0
  76. data/vendor/sedna/kernel/common/st/stacktrace.h +72 -0
  77. data/vendor/sedna/kernel/common/st/stacktrfmt.c +64 -0
  78. data/vendor/sedna/kernel/common/tr_debug.cpp +112 -0
  79. data/vendor/sedna/kernel/common/tr_debug.h +22 -0
  80. data/vendor/sedna/kernel/common/u/Makefile +14 -0
  81. data/vendor/sedna/kernel/common/u/u.c +268 -0
  82. data/vendor/sedna/kernel/common/u/u.h +715 -0
  83. data/vendor/sedna/kernel/common/u/uatomic.h +12 -0
  84. data/vendor/sedna/kernel/common/u/udl.h +31 -0
  85. data/vendor/sedna/kernel/common/u/uevent.c +406 -0
  86. data/vendor/sedna/kernel/common/u/uevent.h +71 -0
  87. data/vendor/sedna/kernel/common/u/ugnames.cpp +330 -0
  88. data/vendor/sedna/kernel/common/u/ugnames.h +134 -0
  89. data/vendor/sedna/kernel/common/u/uhash_map.h +77 -0
  90. data/vendor/sedna/kernel/common/u/uhdd.c +1018 -0
  91. data/vendor/sedna/kernel/common/u/uhdd.h +206 -0
  92. data/vendor/sedna/kernel/common/u/ummap.cpp +268 -0
  93. data/vendor/sedna/kernel/common/u/ummap.h +60 -0
  94. data/vendor/sedna/kernel/common/u/umutex.c +145 -0
  95. data/vendor/sedna/kernel/common/u/umutex.h +65 -0
  96. data/vendor/sedna/kernel/common/u/upipe.cpp +244 -0
  97. data/vendor/sedna/kernel/common/u/upipe.h +74 -0
  98. data/vendor/sedna/kernel/common/u/uprocess.c +767 -0
  99. data/vendor/sedna/kernel/common/u/uprocess.h +91 -0
  100. data/vendor/sedna/kernel/common/u/usafesync.h +41 -0
  101. data/vendor/sedna/kernel/common/u/usecurity.c +150 -0
  102. data/vendor/sedna/kernel/common/u/usecurity.h +55 -0
  103. data/vendor/sedna/kernel/common/u/usem.c +891 -0
  104. data/vendor/sedna/kernel/common/u/usem.h +83 -0
  105. data/vendor/sedna/kernel/common/u/ushm.c +222 -0
  106. data/vendor/sedna/kernel/common/u/ushm.h +46 -0
  107. data/vendor/sedna/kernel/common/u/usocket.c +541 -0
  108. data/vendor/sedna/kernel/common/u/usocket.h +118 -0
  109. data/vendor/sedna/kernel/common/u/usystem.c +57 -0
  110. data/vendor/sedna/kernel/common/u/usystem.h +46 -0
  111. data/vendor/sedna/kernel/common/u/uthread.c +259 -0
  112. data/vendor/sedna/kernel/common/u/uthread.h +95 -0
  113. data/vendor/sedna/kernel/common/u/utime.c +65 -0
  114. data/vendor/sedna/kernel/common/u/utime.h +40 -0
  115. data/vendor/sedna/kernel/common/u/uutils.c +142 -0
  116. data/vendor/sedna/kernel/common/u/uutils.h +65 -0
  117. data/vendor/sedna/kernel/common/ugc.cpp +156 -0
  118. data/vendor/sedna/kernel/common/ugc.h +15 -0
  119. data/vendor/sedna/kernel/common/utils.cpp +156 -0
  120. data/vendor/sedna/kernel/common/utils.h +133 -0
  121. data/vendor/sedna/kernel/common/version.c +16 -0
  122. data/vendor/sedna/kernel/common/version.h +21 -0
  123. data/vendor/sedna/kernel/common/wustructures.h +18 -0
  124. data/vendor/sedna/kernel/common/wutypes.h +34 -0
  125. data/vendor/sedna/kernel/common/xptr.cpp +17 -0
  126. data/vendor/sedna/kernel/common/xptr.h +211 -0
  127. data/vendor/sedna/ver +1 -0
  128. metadata +142 -14
@@ -0,0 +1,18 @@
1
+ Authors of Sedna:
2
+
3
+ Konstantin Antipin
4
+ Alexander Boldakov
5
+ Andrey Fomichev
6
+ Maxim Grinev
7
+ Maria Grineva (Rekouts)
8
+ Alexander Kalinin
9
+ Sergei Kuznetsov
10
+ Dmitry Lizorkin
11
+ Leonid Novak
12
+ Roman Pastukhov
13
+ Peter Pleshachkov
14
+ Ivan Shcheklein
15
+ Ilya Taranov
16
+ Denis Turdakov
17
+ Pavel Velikhov
18
+ Nikolai Zavaritski
@@ -0,0 +1,90 @@
1
+
2
+ This product includes software developed by
3
+ The Institute for System Programming (ISP)
4
+ of the Russian Academy of Sciences (RAS) (http://www.ispras.ru).
5
+
6
+ Copyright (C) 2004-2010 ISP RAS. All rights reserved.
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this product except in compliance with the License.
10
+ You may see file LICENSE or You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ ITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License.
19
+
20
+
21
+
22
+ This product also includes software developed by other legal entities:
23
+
24
+ 1. PCRE - Perl Compatible Regular Expressions (http://www.pcre.org)
25
+ Written by: Philip Hazel <ph10@cam.ac.uk>
26
+
27
+ Copyright (c) 1997-2004 University of Cambridge
28
+ All rights reserved
29
+
30
+ Release 5 of PCRE is distributed under the terms of the "BSD" licence, as
31
+ specified at http://www.pcre.org/license.txt.
32
+
33
+ 2. Expat (http://expat.sourceforge.net)
34
+ Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
35
+ and Clark Cooper
36
+ Copyright (c) 2001, 2002, 2003 Expat maintainers.
37
+ Distributed under the terms of the MIT License
38
+ (See accompanying file libs/expat/COPYING (source code distribution) or copy
39
+ at http://www.opensource.org/licenses/mit-license.php)
40
+
41
+ 3. Argtable (http://argtable.sourceforge.net)
42
+ Copyright (C) 2003, 2004 ISP RAS
43
+ Copyright (C) 1998, 1999, 2001 Stewart Heitmann
44
+ You may redistribute this library under the terms of the
45
+ GNU Library General Public License (version 2 or any later
46
+ version) as published by the Free Software Foundation
47
+ (See accompanying file kernel/common/ph/COPYING (source code distribution) or
48
+ copy at http://www.gnu.org/copyleft/library.txt).
49
+
50
+ 4. PostgreSQL Database Management System
51
+ (formerly known as Postgres, then as Postgres95)
52
+
53
+ Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
54
+ Portions Copyright (c) 1994, The Regents of the University of California
55
+
56
+ Permission to use, copy, modify, and distribute this software and its
57
+ documentation for any purpose, without fee, and without a written agreement
58
+ is hereby granted, provided that the above copyright notice and this
59
+ paragraph and the following two paragraphs appear in all copies.
60
+
61
+ 5. Editline library (http://www.thrysoee.dk/editline)
62
+ Copyright (c) 1992, 1993
63
+ The Regents of the University of California. All rights reserved.
64
+
65
+ This code is derived from software contributed to Berkeley by
66
+ Christos Zoulas of Cornell University.
67
+
68
+ Redistribution and use in source and binary forms, with or without
69
+ modification, are permitted provided that the following conditions
70
+ are met:
71
+ 1. Redistributions of source code must retain the above copyright
72
+ notice, this list of conditions and the following disclaimer.
73
+ 2. Redistributions in binary form must reproduce the above copyright
74
+ notice, this list of conditions and the following disclaimer in the
75
+ documentation and/or other materials provided with the distribution.
76
+ 3. Neither the name of the University nor the names of its contributors
77
+ may be used to endorse or promote products derived from this software
78
+ without specific prior written permission.
79
+
80
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
81
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
82
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
83
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
84
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
85
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
86
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
87
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
88
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
89
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
90
+ SUCH DAMAGE.
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
@@ -0,0 +1,423 @@
1
+ # Configuration constants
2
+
3
+ # options: Release configuration - Release
4
+ # Debug configuration - Debug
5
+ # See also EL_DEBUG constant
6
+ ifndef ACTIVE_CONFIGURATION
7
+ ACTIVE_CONFIGURATION = Release
8
+ endif
9
+
10
+ # options: Compile latex files - 1
11
+ # Do not compile latex files - 0
12
+ ifndef MAKE_DOC
13
+ MAKE_DOC = 0
14
+ endif
15
+ ifndef INSTALL_DOC
16
+ INSTALL_DOC = 1
17
+ endif
18
+
19
+ # options: debug logging is on - 1
20
+ # debug logging is off - 0
21
+ ifndef EL_DEBUG
22
+ EL_DEBUG = 0
23
+ endif
24
+
25
+ # options: recovery testing is on - 1
26
+ # recovery testing is off - 0
27
+ ifndef RCV_TEST
28
+ RCV_TEST = 0
29
+ endif
30
+
31
+ # options: Compile java files - 1
32
+ # Do not compile java files - 0
33
+ ifndef JAVA_DRIVER
34
+ JAVA_DRIVER = 0
35
+ endif
36
+
37
+ # options: SQL connection is on - 1
38
+ # SQL connection is off - 0
39
+ ifndef SQL_CONNECTION
40
+ SQL_CONNECTION = 0
41
+ endif
42
+
43
+ # options: Static system libraries is on - 1
44
+ # Static system libraries is off - 0
45
+ # Ignored under Darwin, SunOS, Windows
46
+ ifndef STATIC_SYS_LIBS
47
+ STATIC_SYS_LIBS = 0
48
+ endif
49
+
50
+ # options: Enable gcov coverage tests - 1
51
+ # Disable gcov coverage tests - 0
52
+ ifndef SE_ENABLE_GCOV
53
+ SE_ENABLE_GCOV = 0
54
+ endif
55
+
56
+ # options: Enable dtsearch - 1
57
+ # Disable dtsearch - 0
58
+ ifndef ENABLE_DTSEARCH
59
+ ENABLE_DTSEARCH = 0
60
+ endif
61
+
62
+ # options: Enable ftsearch - 1
63
+ # Disable ftsearch - 0
64
+ ifndef ENABLE_FTSEARCH
65
+ ENABLE_FTSEARCH = 1
66
+ endif
67
+
68
+ # options: triggers is on - 1
69
+ # triggers is off - 0
70
+ ifndef ENABLE_TRIGGERS
71
+ ENABLE_TRIGGERS = 1
72
+ endif
73
+
74
+ # options: static libodbc - 1
75
+ # shared libodbc - 0
76
+ ifndef LIBODBC_STATIC
77
+ LIBODBC_STATIC = 0
78
+ endif
79
+
80
+ # options: use libedit in term - 1
81
+ # disable libedit - 0
82
+ ifndef ENABLE_LIBEDIT
83
+ ENABLE_LIBEDIT = 1
84
+ endif
85
+
86
+ # options: perform libaries cleanup on make clean - 1
87
+ # else - 0
88
+ ifndef CLEANUP_LIBRARIES
89
+ CLEANUP_LIBRARIES = 1
90
+ endif
91
+
92
+
93
+ # SEDNA_BUILD is defined outside when release version is made
94
+ ifndef SEDNA_BUILD
95
+ SEDNA_BUILD = $(shell if test -r $(PP)/build; then cat $(PP)/build; else echo 0; fi)
96
+ endif
97
+
98
+
99
+ SEDNA_VERSION := $(shell cat $(PP)/ver)
100
+
101
+
102
+ SEDNA_DIRS = $(PP)/kernel $(PP)/libs \
103
+ $(PP)/driver/c $(PP)/export $(PP)/term $(PP)/libs/dtsearch/include \
104
+ $(PP)/libs/libedit/include/editline
105
+
106
+
107
+ ifndef INCLUDE_DIRS
108
+ INCLUDE_DIRS = $(SEDNA_DIRS)
109
+ endif
110
+
111
+
112
+ # INCLUDE_DIRS should be defined
113
+ INCLUDE_DIRECTIVES_VC = $(foreach inc, $(INCLUDE_DIRS), /I$(inc)) /I$(PP)/libs/compat
114
+ INCLUDE_DIRECTIVES_GCC = $(foreach inc, $(INCLUDE_DIRS), -I$(inc))
115
+
116
+
117
+ M4 = m4
118
+ MKDIR = mkdir
119
+ INSTALL = install
120
+ ECHO = echo
121
+ REMOVE = rm -f
122
+ REMOVE_DIR = rm -f -r
123
+ COPY = cp -r
124
+ PDFLATEX = pdflatex
125
+ LIST_EXT = .lst
126
+
127
+ include $(PP)/Makefile.platform
128
+
129
+
130
+ ifeq ("$(OS)", "CYGWIN_NT")
131
+ # Win32
132
+ CC = cl /c
133
+ CCX = cl /c
134
+ LD = link
135
+ LB = lib
136
+ MT = mt
137
+ LDOUT = /out:
138
+ LIBOUT = /OUT:
139
+ LIBFLAGS = /NOLOGO
140
+ OBJ_EXT = .obj
141
+ LIB_EXT = .lib
142
+ EXE_EXT = .exe
143
+ DL_EXT = .dll
144
+ DEF_EXT = .def
145
+
146
+ PATCHER = patch
147
+
148
+ ENABLE_LIBEDIT = 0
149
+
150
+ # Starting in Visual C++ 2005, LIBCP.LIB and LIBCPD.LIB (via the old /ML and /MLd options) have been removed.
151
+ # Use LIBCPMT.LIB and LIBCPMTD.LIB instead via the /MT and /MTd options.
152
+ # Moreover, if you link your program from the command line without a compiler option (CFLAGS_ST) that specifies
153
+ # a C run-time library, the linker will use LIBCMT.LIB. This is different from previous versions of Visual C++
154
+ # which used LIBC.LIB, the single-threaded library, instead.
155
+
156
+ # Win32 Debug configuration
157
+ ifeq ("$(ACTIVE_CONFIGURATION)","Debug")
158
+ CFLAGS_ST = /nologo /Zi /Od $(INCLUDE_DIRECTIVES_VC) /D _CONSOLE /DEL_DEBUG=$(EL_DEBUG) \
159
+ /DSEDNA_VERSION=\"$(SEDNA_VERSION)\" /DSEDNA_BUILD=\"$(SEDNA_BUILD)\" \
160
+ /DC_EMBEDDED /DC_NO_PIC_NO_DLL /DXML_STATIC \
161
+ /D_CRT_SECURE_NO_DEPRECATE /DDEBUGI=1 /D__STDC_CONSTANT_MACROS /D__STDC_LIMIT_MACROS /D__STDC_FORMAT_MACROS
162
+ CPPFLAGS_ST = /nologo /Zi /Od /EHsc /GR $(INCLUDE_DIRECTIVES_VC) /D _CONSOLE \
163
+ /DACTIVE_CONFIGURATION=\"$(ACTIVE_CONFIGURATION)\" /DEL_DEBUG=$(EL_DEBUG) \
164
+ /DSEDNA_VERSION=\"$(SEDNA_VERSION)\" /DSEDNA_BUILD=\"$(SEDNA_BUILD)\" \
165
+ /DC_EMBEDDED /DXML_STATIC /D_CRT_SECURE_NO_DEPRECATE /DDEBUGI=1 /D__STDC_CONSTANT_MACROS /D__STDC_LIMIT_MACROS \
166
+ /D__STDC_FORMAT_MACROS
167
+ CFLAGS = $(CFLAGS_ST) /MTd
168
+ CFLAGS_DL = $(CFLAGS_ST) /MDd
169
+ CFLAGS_NOOPTIM = $(CFLAGS)
170
+ CPPFLAGS = $(CPPFLAGS_ST) /MTd
171
+ LFLAGS_NOLIB= /NOLOGO /INCREMENTAL:NO /DEBUG /PROFILE
172
+ LFLAGS = $(LFLAGS_NOLIB) /NODEFAULTLIB:LIBC.LIB \
173
+ /NODEFAULTLIB:LIBCD.LIB /NOD:LIBCMT.LIB /LIBPATH:$(PP)/libs /LIBPATH:$(PP)/libs/expat \
174
+ /LIBPATH:$(PP)/libs/dtsearch/lib /LIBPATH:$(PP)/libs/pcre \
175
+ WS2_32.lib Advapi32.lib libexpatmt.lib \
176
+ libpcre.lib
177
+ ifeq ($(ENABLE_DTSEARCH),1)
178
+ LFLAGS_DTS = /NOLOGO /SUBSYSTEM:CONSOLE /INCREMENTAL:NO /NODEFAULTLIB:LIBC.LIB \
179
+ /NODEFAULTLIB:LIBCD.LIB /NODEFAULTLIB:Nafxcw.lib /LIBPATH:$(PP)/libs \
180
+ /LIBPATH:$(PP)/libs/expat /LIBPATH:$(PP)/libs/dtsearch/lib \
181
+ /LIBPATH:$(PP)/libs/pcre \
182
+ WS2_32.lib Advapi32.lib libexpatmt.lib libpcre.lib \
183
+ /DEBUG /PROFILE /NOD:LIBCMT.LIB
184
+ endif
185
+ else
186
+ # Win32 Release configuration
187
+ CFLAGS_ST = /nologo /O2 $(INCLUDE_DIRECTIVES_VC) /D _CONSOLE /DEL_DEBUG=$(EL_DEBUG) \
188
+ /DSEDNA_VERSION=\"$(SEDNA_VERSION)\" /DSEDNA_BUILD=\"$(SEDNA_BUILD)\" \
189
+ /DC_EMBEDDED /DC_NO_PIC_NO_DLL /DXML_STATIC \
190
+ /D_CRT_SECURE_NO_DEPRECATE /DDEBUGI=0 /D__STDC_CONSTANT_MACROS /D__STDC_LIMIT_MACROS /D__STDC_FORMAT_MACROS
191
+ CPPFLAGS_ST = /nologo /O2 /EHsc /GR $(INCLUDE_DIRECTIVES_VC) /D _CONSOLE \
192
+ /DACTIVE_CONFIGURATION=\"$(ACTIVE_CONFIGURATION)\" /DEL_DEBUG=$(EL_DEBUG) \
193
+ /DSEDNA_VERSION=\"$(SEDNA_VERSION)\" /DSEDNA_BUILD=\"$(SEDNA_BUILD)\" \
194
+ /DC_EMBEDDED /DC_NO_PIC_NO_DLL /DXML_STATIC \
195
+ /D_CRT_SECURE_NO_DEPRECATE /DDEBUGI=0 /D__STDC_CONSTANT_MACROS /D__STDC_LIMIT_MACROS /D__STDC_FORMAT_MACROS
196
+ CFLAGS = $(CFLAGS_ST) /MT
197
+ CFLAGS_DL = $(CFLAGS_ST) /MD
198
+ CFLAGS_NOOPTIM = /nologo /Od /Ob2 $(INCLUDE_DIRECTIVES_VC) /D _CONSOLE /DEL_DEBUG=$(EL_DEBUG) \
199
+ /DSEDNA_VERSION=\"$(SEDNA_VERSION)\" /DSEDNA_BUILD=\"$(SEDNA_BUILD)\" \
200
+ /DC_EMBEDDED /DC_NO_PIC_NO_DLL /DXML_STATIC /D_CRT_SECURE_NO_DEPRECATE
201
+ CPPFLAGS = $(CPPFLAGS_ST) /MT
202
+ LFLAGS_NOLIB= /NOLOGO
203
+ LFLAGS = $(LFLAGS_NOLIB) /NODEFAULTLIB:LIBC.LIB \
204
+ /NODEFAULTLIB:LIBCD.LIB /LIBPATH:$(PP)/libs /LIBPATH:$(PP)/libs/expat \
205
+ /LIBPATH:$(PP)/libs/dtsearch/lib /LIBPATH:$(PP)/libs/pcre \
206
+ LIBCMT.LIB WS2_32.lib Advapi32.lib libexpatmt.lib \
207
+ libpcre.lib
208
+ ifeq ($(ENABLE_DTSEARCH),1)
209
+ LFLAGS_DTS = /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB:LIBC.LIB \
210
+ /NODEFAULTLIB:LIBCD.LIB /NODEFAULTLIB:Nafxcw.lib \
211
+ /LIBPATH:$(PP)/libs/expat /LIBPATH:$(PP)/libs/dtsearch/lib /LIBPATH:$(PP)/libs/pcre \
212
+ WS2_32.lib Advapi32.lib \
213
+ libexpatmt.lib libpcre.lib /NOD:LIBCMT.LIB
214
+ endif
215
+ endif
216
+
217
+ ifeq ($(EL_DEBUG),1)
218
+ LFLAGS += Dbghelp.lib
219
+ ifeq ($(ENABLE_DTSEARCH),1)
220
+ LFLAGS_DTS += Dbghelp.lib
221
+ endif
222
+ endif
223
+
224
+ LSLIBS =
225
+
226
+ ifeq ($(SQL_CONNECTION),1)
227
+ CPPFLAGS+= /DSQL_CONNECTION
228
+ endif
229
+ ifeq ($(ENABLE_DTSEARCH),1)
230
+ CPPFLAGS+= /DSE_ENABLE_DTSEARCH
231
+ endif
232
+ ifeq ($(ENABLE_FTSEARCH),1)
233
+ CPPFLAGS+= /DSE_ENABLE_FTSEARCH
234
+ endif
235
+ ifeq ($(ENABLE_TRIGGERS),1)
236
+ CPPFLAGS+= /DSE_ENABLE_TRIGGERS
237
+ CFLAGS+= /DSE_ENABLE_TRIGGERS
238
+ endif
239
+ ifeq ($(RCV_TEST),1)
240
+ CPPFLAGS+= /DRCV_TEST_CRASH
241
+ CFLAGS+= /DRCV_TEST_CRASH
242
+ endif
243
+
244
+ else
245
+ # UNIX
246
+ CC = gcc -c
247
+ CCX = g++ -c
248
+ LD = g++
249
+ LB = ar
250
+ LIBFLAGS = rcs
251
+ LDOUT = -o # Space symbol is required there!
252
+ LIBOUT =
253
+ OBJ_EXT = .o
254
+ LIB_EXT = .a
255
+ EXE_EXT =
256
+ DL_EXT = .so
257
+
258
+ PATCHER = patch
259
+
260
+ ifeq ("$(SUB_PLATFORM)", "SunOS")
261
+ PATCHER = gpatch
262
+ endif
263
+
264
+ STATIC_FLAG =
265
+
266
+ ifeq ("$(STATIC_SYS_LIBS)","1") # Should be ignored under SunOS, Darwin!
267
+ STATIC_FLAG =
268
+ ifeq ("$(SUB_PLATFORM)","Linux")
269
+ STATIC_FLAG = -static
270
+ endif
271
+ ifeq ("$(SUB_PLATFORM)","FreeBSD")
272
+ STATIC_FLAG = -static
273
+ endif
274
+ endif
275
+
276
+ ifeq ("$(ACTIVE_CONFIGURATION)","Debug")
277
+
278
+ CFLAGS = -g3 -ggdb -fexceptions -Wall $(INCLUDE_DIRECTIVES_GCC) \
279
+ -DSEDNA_VERSION=\"$(SEDNA_VERSION)\" -DSEDNA_BUILD=\"$(SEDNA_BUILD)\" \
280
+ -DEL_DEBUG=$(EL_DEBUG) -fno-omit-frame-pointer -fno-strict-aliasing -Wno-unused -Wno-uninitialized -DHAVE_ALLOCA_H \
281
+ -DC_STACK_GROWS_DOWNWARD=1 -DC_USE_C_DEFAULTS -DC_EMBEDDED -DDEBUGI=1 -D__STDC_CONSTANT_MACROS -DC_NO_PIC_NO_DLL -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS
282
+ CFLAGS_NOOPTIM = $(CFLAGS)
283
+ CPPFLAGS = -g3 -ggdb -Wall -Wno-deprecated -fexceptions -fno-omit-frame-pointer -fno-strict-aliasing $(INCLUDE_DIRECTIVES_GCC) \
284
+ -DSEDNA_VERSION=\"$(SEDNA_VERSION)\" -DSEDNA_BUILD=\"$(SEDNA_BUILD)\" -DEL_DEBUG=$(EL_DEBUG) \
285
+ -DACTIVE_CONFIGURATION=\"$(ACTIVE_CONFIGURATION)\" -DDEBUGI=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS
286
+ LFLAGS_NOLIB=-g3 -ggdb -fexceptions $(STATIC_FLAG)
287
+ LFLAGS = $(LFLAGS_NOLIB) -L$(PP)/libs/expat -L$(PP)/libs/pcre
288
+
289
+ else # Release
290
+
291
+ CFLAGS = -O2 -w -fno-strict-aliasing -fexceptions $(INCLUDE_DIRECTIVES_GCC) \
292
+ -DC_NO_PIC_NO_DLL -DSEDNA_VERSION=\"$(SEDNA_VERSION)\" -DSEDNA_BUILD=\"$(SEDNA_BUILD)\" \
293
+ -DEL_DEBUG=$(EL_DEBUG) -DHAVE_ALLOCA_H \
294
+ -DC_STACK_GROWS_DOWNWARD=1 -DC_USE_C_DEFAULTS -DC_EMBEDDED -DDEBUGI=0 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
295
+ CFLAGS_NOOPTIM = $(CFLAGS)
296
+ CPPFLAGS = -O2 -w -fno-strict-aliasing -fexceptions $(INCLUDE_DIRECTIVES_GCC) \
297
+ -DSEDNA_VERSION=\"$(SEDNA_VERSION)\" -DSEDNA_BUILD=\"$(SEDNA_BUILD)\" -DEL_DEBUG=$(EL_DEBUG) \
298
+ -DACTIVE_CONFIGURATION=\"$(ACTIVE_CONFIGURATION)\" -DDEBUGI=0 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS
299
+ LFLAGS_NOLIB=-O2 $(STATIC_FLAG) -fexceptions
300
+ LFLAGS = $(LFLAGS_NOLIB) -L$(PP)/libs/expat -L$(PP)/libs/pcre
301
+
302
+ endif
303
+
304
+ LSLIBS = -lexpat -lpcre -fexceptions
305
+ CFLAGS_SL = -fPIC -DSE_NO_EVENT_LOG
306
+
307
+ ifeq ("$(SUB_PLATFORM)","Linux")
308
+ CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
309
+ CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
310
+ LSLIBS += -lnsl -lrt -pthread -ldl
311
+ endif
312
+
313
+ ifeq ("$(SUB_PLATFORM)","SunOS")
314
+ LSLIBS += -lnsl -lrt -lsocket -ldl
315
+ CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
316
+ CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS
317
+ endif
318
+
319
+ ifeq ("$(SUB_PLATFORM)","FreeBSD")
320
+ ENABLE_LIBEDIT = 0
321
+ LSLIBS += -lthr
322
+ CFLAGS_SL += -DPIC
323
+ endif
324
+
325
+ ifeq ("$(SUB_PLATFORM)","Darwin")
326
+ LSLIBS += -lpthread
327
+ endif
328
+
329
+
330
+ ifeq ($(SQL_CONNECTION),1)
331
+ ifeq ($(LIBODBC_STATIC),1)
332
+ LSLIBS += -lodbc -lltdl
333
+ CPPFLAGS+= -DLIBODBC_STATIC
334
+ endif
335
+ CPPFLAGS+= -DSQL_CONNECTION
336
+ endif
337
+
338
+ ifeq ($(SE_ENABLE_GCOV),1)
339
+ CFLAGS += -fprofile-arcs -ftest-coverage
340
+ CPPFLAGS+= -fprofile-arcs -ftest-coverage
341
+ LSLIBS += -fprofile-arcs -ftest-coverage
342
+ endif
343
+
344
+ ifeq ($(ENABLE_DTSEARCH),1)
345
+ CPPFLAGS+= -DSE_ENABLE_DTSEARCH -D__UNIX__ -DUnicodeText
346
+ LFLAGS += -L$(PP)/libs/dtsearch/lib -ldtsearch -lz
347
+ endif
348
+ ifeq ($(ENABLE_FTSEARCH),1)
349
+ CPPFLAGS+= -DSE_ENABLE_FTSEARCH
350
+ endif
351
+ ifeq ($(ENABLE_TRIGGERS),1)
352
+ CPPFLAGS+= -DSE_ENABLE_TRIGGERS
353
+ CFLAGS+= -DSE_ENABLE_TRIGGERS
354
+ endif
355
+ ifeq ($(RCV_TEST),1)
356
+ CPPFLAGS+= -DRCV_TEST_CRASH
357
+ CFLAGS+= -DRCV_TEST_CRASH
358
+ endif
359
+
360
+ endif
361
+
362
+ #These targets simplify debugging
363
+ Makefile.%: ;
364
+ .SUFFIXES:
365
+
366
+ ifeq ("$(GENFULLPATH)", "1")
367
+ %$(OBJ_EXT): %.cpp
368
+ $(CCX) $(CPPFLAGS) `pwd`/$<
369
+ else
370
+ %$(OBJ_EXT): %.cpp
371
+ $(CCX) $(CPPFLAGS) $<
372
+ endif
373
+
374
+
375
+ %$(OBJ_EXT): %.c
376
+ $(CC) $(CFLAGS) $<
377
+
378
+ %.pdf: %.tex
379
+ $(PDFLATEX) $<
380
+ $(PDFLATEX) $<
381
+ $(PDFLATEX) $<
382
+
383
+
384
+ ifeq ("$(OS)", "CYGWIN_NT")
385
+ # Win32
386
+ %.d: %.c
387
+ @echo " generating dependencies for $<"
388
+ @set -e; rm -f $@; \
389
+ gcc $(INCLUDE_DIRECTIVES_GCC) -D_WIN32 -MM $< | sed -f $(PP)/depend.sed > $@.$$$$; \
390
+ sed 's,\($*\)\.o[ :]*,\1$(OBJ_EXT) $@ : ,g' < $@.$$$$ > $@; \
391
+ rm -f $@.$$$$
392
+
393
+ %.d: %.cpp
394
+ @echo " generating dependencies for $<"
395
+ @set -e; rm -f $@; \
396
+ gcc $(INCLUDE_DIRECTIVES_GCC) -D_WIN32 -MM $< | sed -f $(PP)/depend.sed > $@.$$$$; \
397
+ sed 's,\($*\)\.o[ :]*,\1$(OBJ_EXT) $@ : ,g' < $@.$$$$ > $@; \
398
+ rm -f $@.$$$$
399
+ else
400
+ # UNIX
401
+ %.d: %.c
402
+ @echo " generating dependencies for $<"
403
+ @set -e; rm -f $@; \
404
+ gcc $(INCLUDE_DIRECTIVES_GCC) -MM $< | sed -f $(PP)/depend.sed > $@.$$$$; \
405
+ sed 's,\($*\)\.o[ :]*,\1$(OBJ_EXT) $@ : ,g' < $@.$$$$ > $@; \
406
+ rm -f $@.$$$$
407
+
408
+ %.d: %.cpp
409
+ @echo " generating dependencies for $<"
410
+ @set -e; rm -f $@; \
411
+ gcc $(INCLUDE_DIRECTIVES_GCC) -MM $< | sed -f $(PP)/depend.sed > $@.$$$$; \
412
+ sed 's,\($*\)\.o[ :]*,\1$(OBJ_EXT) $@ : ,g' < $@.$$$$ > $@; \
413
+ rm -f $@.$$$$
414
+ endif
415
+
416
+
417
+ ifeq ($(MAKECMDGOALS),clean)
418
+
419
+ generic_clean:
420
+ -$(REMOVE) *$(OBJ_EXT) *$(LIB_EXT) *.bb *.bbg *.da *.map *.pdb vc*.idb *.SUP *.d *.d.* generated
421
+
422
+ endif
423
+