File: Makefile.am

package info (click to toggle)
recutils 1.7-1.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 12,276 kB
  • ctags: 7,034
  • sloc: ansic: 64,860; sh: 18,180; lisp: 1,840; yacc: 1,381; makefile: 331; lex: 241; sed: 16
file content (164 lines) | stat: -rw-r--r-- 6,729 bytes parent folder | download | duplicates (3)
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# torture/ Makefile.am
# GNU rec library

# Copyright (C) 2009, 2010, 2011, 2012 Jose E. Marchesi

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Note that we want to run the unit tests first.  They are stored in
# the rec-* subdirectories, but commanded by the Makefile in the
# current directory.  That explains the dot in the SUBDIRS variable
# definition.

SUBDIRS = . utils

AUTOMAKE_OPTIONS = subdir-objects

if CHECK

TESTS = runtests
noinst_PROGRAMS = runtests

REC_MSET_TSUITE = rec-mset/elem-types.h \
                  rec-mset/rec-mset-new.c \
                  rec-mset/rec-mset-dup.c \
                  rec-mset/rec-mset-type-p.c \
                  rec-mset/rec-mset-register-type.c \
                  rec-mset/rec-mset-count.c \
                  rec-mset/rec-mset-get-at.c \
                  rec-mset/tsuite-rec-mset.c

REC_COMMENT_TSUITE = rec-comment/rec-comment-new.c \
                     rec-comment/rec-comment-destroy.c \
                     rec-comment/rec-comment-dup.c \
                     rec-comment/rec-comment-text.c \
                     rec-comment/rec-comment-set-text.c \
                     rec-comment/rec-comment-equal-p.c \
                     rec-comment/tsuite-rec-comment.c

REC_FIELD_NAME_TSUITE = rec-field-name/rec-field-name-equal-p.c \
                        rec-field-name/rec-field-name-p.c \
                        rec-field-name/rec-field-name-normalise.c \
                        rec-field-name/tsuite-rec-field-name.c

REC_TYPE_TSUITE = rec-type/rec-type-new.c \
                  rec-type/rec-type-destroy.c \
                  rec-type/rec-type-descr-p.c \
                  rec-type/rec-type-kind.c \
                  rec-type/rec-type-kind-str.c \
                  rec-type/rec-type-equal-p.c \
                  rec-type/rec-type-check.c \
                  rec-type/rec-type-name.c \
                  rec-type/rec-type-set-name.c \
                  rec-type/tsuite-rec-type.c

REC_TYPE_REG_TSUITE = rec-type-reg/rec-type-reg-new.c \
                      rec-type-reg/rec-type-reg-destroy.c \
                      rec-type-reg/tsuite-rec-type-reg.c \
                      rec-type-reg/rec-type-reg-get.c

REC_FEX_TSUITE = rec-fex/rec-fex-new.c \
                 rec-fex/rec-fex-destroy.c \
                 rec-fex/rec-fex-check.c \
                 rec-fex/rec-fex-sort.c \
                 rec-fex/rec-fex-size.c \
                 rec-fex/rec-fex-get.c \
                 rec-fex/rec-fex-elem-field-name.c \
                 rec-fex/rec-fex-elem-rewrite-to.c \
                 rec-fex/rec-fex-elem-min.c \
                 rec-fex/rec-fex-elem-max.c \
                 rec-fex/rec-fex-str.c \
                 rec-fex/tsuite-rec-fex.c

REC_FIELD_TSUITE = rec-field/rec-field-name.c \
                   rec-field/rec-field-set-name.c \
                   rec-field/rec-field-value.c \
                   rec-field/rec-field-set-value.c \
                   rec-field/rec-field-dup.c \
                   rec-field/rec-field-new.c \
                   rec-field/rec-field-destroy.c \
                   rec-field/rec-field-equal-p.c \
                   rec-field/rec-field-source.c \
                   rec-field/rec-field-set-source.c \
                   rec-field/rec-field-location.c \
                   rec-field/rec-field-location-str.c \
                   rec-field/rec-field-set-location.c \
                   rec-field/rec-field-char-location.c \
                   rec-field/rec-field-char-location-str.c \
                   rec-field/rec-field-set-char-location.c \
                   rec-field/rec-field-to-comment.c \
                   rec-field/tsuite-rec-field.c

REC_RECORD_TSUITE = rec-record/tsuite-rec-record.c

REC_PARSER_TSUITE = rec-parser/rec-parser-new.c \
                    rec-parser/rec-parser-new-str.c \
                    rec-parser/rec-parser-new-mem.c \
                    rec-parser/rec-parser-destroy.c \
                    rec-parser/rec-parse-field-name-str.c \
                    rec-parser/rec-parse-field-name.c \
                    rec-parser/rec-parse-field.c \
                    rec-parser/rec-parse-record.c \
                    rec-parser/rec-parse-record-str.c \
                    rec-parser/rec-parse-rset.c \
                    rec-parser/rec-parse-db.c \
                    rec-parser/rec-parser-eof.c \
                    rec-parser/rec-parser-error.c \
                    rec-parser/rec-parser-reset.c \
                    rec-parser/rec-parser-perror.c \
                    rec-parser/rec-parser-seek-mem.c \
                    rec-parser/tsuite-rec-parser.c

REC_WRITER_TSUITE= rec-writer/rec-write-comment.c \
                   rec-writer/rec-write-field.c \
                   rec-writer/rec-write-field-name.c \
                   rec-writer/rec-writer-destroy.c \
                   rec-writer/rec-write-record.c \
                   rec-writer/rec-writer-new.c \
                   rec-writer/rec-write-rset.c \
                   rec-writer/rec-write-db.c \
                   rec-writer/rec-write-field-name-str.c \
                   rec-writer/rec-write-field-str.c \
                   rec-writer/rec-write-comment-str.c \
                   rec-writer/tsuite-rec-writer.c

REC_SEX_TSUITE = rec-sex/rec-sex-new.c \
                 rec-sex/rec-sex-destroy.c \
                 rec-sex/rec-sex-compile.c \
                 rec-sex/rec-sex-eval.c \
                 rec-sex/tsuite-rec-sex.c

runtests_SOURCES = runtests.c \
                   $(REC_MSET_TSUITE) \
                   $(REC_COMMENT_TSUITE) \
                   $(REC_FIELD_NAME_TSUITE) \
                   $(REC_TYPE_TSUITE) \
                   $(REC_TYPE_REG_TSUITE) \
                   $(REC_FIELD_TSUITE) \
                   $(REC_RECORD_TSUITE) \
                   $(REC_FEX_TSUITE) \
                   $(REC_PARSER_TSUITE) \
                   $(REC_WRITER_TSUITE) \
                   $(REC_SEX_TSUITE)

AM_CPPFLAGS = -I$(top_srcdir)/src \
              -I$(top_srcdir)/torture
runtests_LDADD = $(CHECKLIBS) ../src/librec.la

clean-local:
	-rm -f tests.log

endif # CHECK

# End of Makefile.am