Merge pull request #3273 from techee/anon_rename_fix3
[geany-mirror.git] / ctags / Makefile.am
blob32f890023b9b276a16ddd9d6957828796473d448
1 AM_CPPFLAGS = \
2         -I$(srcdir)/main \
3         -I$(srcdir)/parsers \
4         -I$(srcdir)/dsl \
5         -DEXTERNAL_PARSER_LIST_FILE=\"$(top_srcdir)/src/tagmanager/tm_parsers.h\" \
6         -DG_LOG_DOMAIN=\"CTags\"
7 AM_CFLAGS = \
8         $(GTK_CFLAGS) \
9         @LIBGEANY_CFLAGS@
11 noinst_LTLIBRARIES = libctags.la
13 parsers = \
14         parsers/cxx/cxx.c \
15         parsers/cxx/cxx_debug.c \
16         parsers/cxx/cxx_debug.h \
17         parsers/cxx/cxx_debug_type.c \
18         parsers/cxx/cxx_keyword.c \
19         parsers/cxx/cxx_keyword.h \
20         parsers/cxx/cxx_parser_block.c \
21         parsers/cxx/cxx_parser.c \
22         parsers/cxx/cxx_parser_function.c \
23         parsers/cxx/cxx_parser.h \
24         parsers/cxx/cxx_parser_internal.h \
25         parsers/cxx/cxx_parser_lambda.c \
26         parsers/cxx/cxx_parser_namespace.c \
27         parsers/cxx/cxx_parser_template.c \
28         parsers/cxx/cxx_parser_tokenizer.c \
29         parsers/cxx/cxx_parser_typedef.c \
30         parsers/cxx/cxx_parser_using.c \
31         parsers/cxx/cxx_parser_variable.c \
32         parsers/cxx/cxx_qtmoc.c \
33         parsers/cxx/cxx_scope.c \
34         parsers/cxx/cxx_scope.h \
35         parsers/cxx/cxx_subparser.c \
36         parsers/cxx/cxx_subparser.h \
37         parsers/cxx/cxx_subparser_internal.h \
38         parsers/cxx/cxx_tag.c \
39         parsers/cxx/cxx_tag.h \
40         parsers/cxx/cxx_token.c \
41         parsers/cxx/cxx_token_chain.c \
42         parsers/cxx/cxx_token_chain.h \
43         parsers/cxx/cxx_token.h \
44         parsers/cpreprocessor.c \
45         parsers/cpreprocessor.h \
46         parsers/abaqus.c \
47         parsers/abc.c \
48         parsers/ada.c \
49         parsers/asciidoc.c \
50         parsers/asm.c \
51         parsers/basic.c \
52         parsers/bibtex.c \
53         parsers/geany_c.c \
54         parsers/clojure.c \
55         parsers/cobol.c \
56         parsers/iniconf.c \
57         parsers/iniconf.h \
58         parsers/css.c \
59         parsers/diff.c \
60         parsers/geany_docbook.c \
61         parsers/erlang.c \
62         parsers/flex.c \
63         parsers/fortran.c \
64         parsers/gdscript.c \
65         parsers/go.c \
66         parsers/haskell.c \
67         parsers/haxe.c \
68         parsers/html.c \
69         parsers/jscript.c \
70         parsers/json.c \
71         parsers/julia.c \
72         parsers/geany_lcpp.c \
73         parsers/geany_lcpp.h \
74         parsers/lisp.c \
75         parsers/lua.c \
76         parsers/make.c \
77         parsers/make.h \
78         parsers/markdown.c \
79         parsers/markdown.h \
80         parsers/geany_matlab.c \
81         parsers/nsis.c \
82         parsers/objc.c \
83         parsers/pascal.c \
84         parsers/perl.c \
85         parsers/perl.h \
86         parsers/php.c \
87         parsers/powershell.c \
88         parsers/python.c \
89         parsers/r.c \
90         parsers/r.h \
91         parsers/rst.c \
92         parsers/ruby.c \
93         parsers/rust.c \
94         parsers/sh.c \
95         parsers/sql.c \
96         parsers/tcl.c \
97         parsers/tcl.h \
98         parsers/tcloo.c \
99         parsers/tex.c \
100         parsers/tex.h \
101         parsers/txt2tags.c \
102         parsers/typescript.c \
103         parsers/verilog.c \
104         parsers/vhdl.c
106 # skip cmd.c and mini-geany.c which define main()
107 # also skip lregex-pcre2.c which we don't use
108 libctags_la_SOURCES = \
109         dsl/optscript.c \
110         dsl/optscript.h \
111         dsl/es.c \
112         dsl/es.h \
113         main/args.c \
114         main/args_p.h \
115         main/colprint.c \
116         main/colprint_p.h \
117         main/CommonPrelude.c \
118         main/ctags.h \
119         main/debug.c \
120         main/debug.h \
121         main/dependency.c \
122         main/dependency.h \
123         main/dependency_p.h \
124         main/e_msoft.h \
125         main/entry.c \
126         main/entry.h \
127         main/entry_p.h \
128         main/entry_private.c \
129         main/error.c \
130         main/error_p.h \
131         main/field.c \
132         main/field.h \
133         main/field_p.h \
134         main/flags.c \
135         main/flags_p.h \
136         main/fmt.c \
137         main/fmt_p.h \
138         main/gcc-attr.h \
139         main/general.h \
140         main/gvars.h \
141         main/htable.c \
142         main/htable.h \
143         main/inline.h \
144         main/interactive_p.h \
145         main/keyword.c \
146         main/keyword.h \
147         main/keyword_p.h \
148         main/kind.c \
149         main/kind.h \
150         main/kind_p.h \
151         main/lregex.c \
152         main/lregex.h \
153         main/lregex_p.h \
154         main/lregex-default.c \
155         main/lxpath.c \
156         main/lxpath.h \
157         main/lxpath_p.h \
158         main/main.c \
159         main/main_p.h \
160         main/mbcs.c \
161         main/mbcs.h \
162         main/mbcs_p.h \
163         main/mio.c \
164         main/mio.h \
165         main/nestlevel.c \
166         main/nestlevel.h \
167         main/numarray.c \
168         main/numarray.h \
169         main/objpool.c \
170         main/objpool.h \
171         main/options.c \
172         main/options.h \
173         main/options_p.h \
174         main/param.c \
175         main/param.h \
176         main/param_p.h \
177         main/parse.c \
178         main/parse.h \
179         main/parse_p.h \
180         main/parsers_p.h \
181         main/portable-dirent_p.h \
182         main/portable-scandir.c \
183         main/promise.c \
184         main/promise.h \
185         main/promise_p.h \
186         main/ptag.c \
187         main/ptag_p.h \
188         main/ptrarray.c \
189         main/ptrarray.h \
190         main/rbtree.c \
191         main/rbtree.h \
192         main/read.c \
193         main/read.h \
194         main/read_p.h \
195         main/repoinfo.c \
196         main/repoinfo.h \
197         main/routines.c \
198         main/routines.h \
199         main/routines_p.h \
200         main/script.c \
201         main/script_p.h \
202         main/seccomp.c \
203         main/selectors.c \
204         main/selectors.h \
205         main/sort.c \
206         main/sort_p.h \
207         main/stats.c \
208         main/stats_p.h \
209         main/strlist.c \
210         main/strlist.h \
211         main/subparser.h \
212         main/subparser_p.h \
213         main/tokeninfo.c \
214         main/tokeninfo.h \
215         main/trace.c \
216         main/trace.h \
217         main/trashbox.c \
218         main/trashbox.h \
219         main/trashbox_p.h \
220         main/types.h \
221         main/unwindi.c \
222         main/unwindi.h \
223         main/vstring.c \
224         main/vstring.h \
225         main/writer-ctags.c \
226         main/writer-etags.c \
227         main/writer-json.c \
228         main/writer-xref.c \
229         main/writer.c \
230         main/writer_p.h \
231         main/xtag.c \
232         main/xtag.h \
233         main/xtag_p.h \
234         $(parsers)
236 libctags_la_LIBADD =
238 # build bundled GNU regex if needed
239 if USE_BUNDLED_REGEX
240 noinst_LTLIBRARIES += libgnu_regex.la
241 libgnu_regex_la_SOURCES = \
242         gnu_regex/regex.c \
243         gnu_regex/regex.h
244 # regex.c includes other sources we have to distribute
245 EXTRA_libgnu_regex_la_SOURCES = \
246         gnu_regex/regcomp.c \
247         gnu_regex/regex.c \
248         gnu_regex/regex.h \
249         gnu_regex/regex_internal.c \
250         gnu_regex/regex_internal.h \
251         gnu_regex/regexec.c
252 libgnu_regex_la_CPPFLAGS = -D__USE_GNU
253 EXTRA_DIST = \
254         gnu_regex/README.txt
256 libctags_la_LIBADD += libgnu_regex.la
257 AM_CPPFLAGS += -I$(srcdir)/gnu_regex
258 endif
260 # build bundled fnmatch if needed
261 if USE_BUNDLED_FNMATCH
262 noinst_LTLIBRARIES += libfnmatch.la
263 libfnmatch_la_SOURCES = \
264         fnmatch/fnmatch.c \
265         fnmatch/fnmatch.h
267 libctags_la_LIBADD += libfnmatch.la
268 AM_CPPFLAGS += -I$(srcdir)/fnmatch
269 endif