aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 41f8579b8f9affc27d9d490568045dc08937dd3e (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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# Copyright (C) 1992-2019, 2020, 2022 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
# DejaGnu 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.
#
# DejaGnu 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 DejaGnu; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.

# Process this file with automake to generate Makefile.in

AUTOMAKE_OPTIONS = dejagnu
export DEJAGNU

# record all files in the distribution tarball as owned by root
TAR_OPTIONS = --format=v7 --owner=0 --group=0
export TAR_OPTIONS

EXTRA_DIST = ChangeLog-1992 MAINTAINERS dejagnu runtest \
	$(pkgdata_DATA) $(config_DATA) $(baseboard_DATA) \
	$(commands_DATA) $(TESTSUITE_FILES) $(TEXINFO_TEX)\
	$(CONTRIB)

CLEANFILES = dbg.log nested-init.exp pr48155-init.exp

clean-local: clean-local-check
.PHONY: clean-local-check
clean-local-check:
	-rm -rf testsuite/launcher.all/command/bin
	-rm -rf testsuite/launcher.all/command/share
	-rm -rf testsuite/report-card.all/onetest
	-rm -rf testsuite/report-card.all/passes

# Give a reassuring message so that users know the "build" worked.
all-local:
	@echo "Done. Now run 'make install'."

bin_SCRIPTS = dejagnu runtest
include_HEADERS = dejagnu.h

pkgdata_DATA = \
  stub-loader.c \
  testglue.c \
  runtest.exp \
  lib/debugger.exp \
  lib/dejagnu.exp \
  lib/dg.exp \
  lib/dmucs.exp \
  lib/framework.exp \
  lib/ftp.exp \
  lib/kermit.exp \
  lib/libgloss.exp \
  lib/remote.exp \
  lib/rlogin.exp \
  lib/rsh.exp \
  lib/ssh.exp \
  lib/standard.exp \
  lib/target.exp \
  lib/targetdb.exp \
  lib/telnet.exp \
  lib/tip.exp \
  lib/utils.exp

commandsdir = $(pkgdatadir)/commands
commands_DATA = \
	commands/help.sh \
	commands/report-card.awk

configdir = $(pkgdatadir)/config
config_DATA = \
	config/README \
	config/adb.exp \
	config/aarch64-fv8.exp \
	config/default.exp \
	config/gdb-comm.exp \
	config/gdb_stub.exp \
	config/sid.exp \
	config/sim.exp \
	config/unix.exp \
	config/vxworks.exp

baseboarddir = $(pkgdatadir)/baseboards
baseboard_DATA = \
	baseboards/README \
	baseboards/aarch64-sim.exp \
	baseboards/am33_2.0-libremote.exp \
	baseboards/androideabi.exp \
	baseboards/arm-ice.exp \
	baseboards/arm-sid.exp \
	baseboards/arm-sim.exp \
	baseboards/basic-sid.exp \
	baseboards/basic-sim.exp \
	baseboards/cris-sim.exp \
	baseboards/d30v-sim.exp \
	baseboards/fr30-sim.exp \
	baseboards/frv-sim.exp \
	baseboards/gdbserver-sample.exp \
	baseboards/generic-sim.exp \
	baseboards/i386-sid.exp \
	baseboards/iq2000-sim.exp \
	baseboards/jmr3904-sim.exp \
	baseboards/linux-gdbserver.exp \
	baseboards/linux-libremote.exp \
	baseboards/m68k-sid.exp \
	baseboards/mcore-moto-sim.exp \
	baseboards/mcore-sim.exp \
	baseboards/mips-lnews-sim.exp \
	baseboards/mips-lsi-sim.exp \
	baseboards/mips-sim-idt32.exp \
	baseboards/mips-sim-idt64.exp \
	baseboards/mips-sim-mti32.exp \
	baseboards/mips-sim-mti64.exp \
	baseboards/mips-sim-mti64_64.exp \
	baseboards/mips-sim-mti64_n32.exp \
	baseboards/mips-sim-sde32.exp \
	baseboards/mips-sim-sde64.exp \
	baseboards/mips-sim.exp \
	baseboards/mmixware-sim.exp \
	baseboards/mn10200-sim.exp \
	baseboards/mn10300-sim.exp \
	baseboards/moxie-sim.exp \
	baseboards/msp430-sim.exp \
	baseboards/mt-sid.exp \
	baseboards/multi-sim.exp \
	baseboards/pi.exp \
	baseboards/powerpc-sim.exp \
	baseboards/powerpcle-sim.exp \
	baseboards/pru-sim.exp \
	baseboards/qemu.exp \
	baseboards/riscv-sim.exp \
	baseboards/rx-sim.exp \
	baseboards/sh-sid.exp \
	baseboards/sh-sim.exp \
	baseboards/sparc-sim.exp \
	baseboards/sparc64-sim.exp \
	baseboards/sparclite-sim-le.exp \
	baseboards/sparclite-sim.exp \
	baseboards/tx39-sim.exp \
	baseboards/unix.exp \
	baseboards/v850-sim.exp \
	baseboards/visium-sim.exp \
	baseboards/vr4100-sim.exp \
	baseboards/vr4111-sim.exp \
	baseboards/vr4300-sim.exp \
	baseboards/xtensa-sim.exp

djlibexecdir = $(pkgdatadir)/libexec
djlibexec_SCRIPTS = config.guess

# Contributed scripts, etc.

CONTRIB = contrib/sum2junit.sh \
	contrib/mysql/create-db.sql contrib/mysql/importxml.sh \
	contrib/mysql/make-datafile.sh contrib/mysql/plot.sh \
	contrib/mysql/README contrib/mysql/sum2xml.sh \
	contrib/dejagnu.py

# Testsuite.

TESTSUITE_FILES = \
	testsuite/launcher.all/command.exp \
	testsuite/launcher.all/command/commands/bar-baz.awk \
	testsuite/launcher.all/command/commands/bar.awk \
	testsuite/launcher.all/command/commands/bar.sh \
	testsuite/launcher.all/command/commands/baz-quux.gawk \
	testsuite/launcher.all/command/commands/foo.sh \
	testsuite/launcher.all/command/commands/foo.tcl \
	testsuite/launcher.all/help.exp \
	testsuite/launcher.all/interp.exp \
	testsuite/launcher.all/verbose.exp \
	testsuite/report-card.all/onetest.exp \
	testsuite/report-card.all/passes.exp \
	testsuite/runtest.libs/topdir/subdir1/subsubdir1/subsubfile1 \
	testsuite/runtest.libs/topdir/subdir1/subfile1 \
	testsuite/runtest.libs/topdir/subdir1/subfile2 \
	testsuite/runtest.libs/topdir/subdir2/subfile2 \
	testsuite/runtest.libs/libs.exp \
	testsuite/runtest.libs/default_procs.tcl \
	testsuite/runtest.libs/mockutil.tcl \
	testsuite/runtest.libs/clone_output.test \
	testsuite/runtest.libs/config.test \
	testsuite/runtest.libs/remote.test \
	testsuite/runtest.libs/target.test \
	testsuite/runtest.libs/testcase_group.test \
	testsuite/runtest.libs/testsuite_can.test \
	testsuite/runtest.libs/testsuite_file.test \
	testsuite/runtest.libs/utils.test \
	testsuite/runtest.main/error.exp \
	testsuite/runtest.main/nested/testsuite/error.test/error-al-dbz.exp \
	testsuite/runtest.main/nested/testsuite/error.test/error-dbz.exp \
	testsuite/runtest.main/nested/testsuite/error.test/error-undef.exp \
	testsuite/runtest.main/nested/testsuite/error.test/simple.exp \
	testsuite/runtest.main/options.exp \
	testsuite/runtest.main/nested/testsuite/null.test/null.exp \
	testsuite/runtest.main/stats.exp \
	testsuite/runtest.main/nested/testsuite/stat.test/stats-sub.exp \
	testsuite/runtest.main/nested/testsuite/stat.test/unit-sub.awk \
	testsuite/runtest.main/nested/testsuite/stat.test/unit-sub.exp \
	testsuite/runtest.main/pr42399.exp \
	testsuite/runtest.main/nested/testsuite/bug.test/pr42399.awk \
	testsuite/runtest.main/nested/testsuite/bug.test/pr42399-sub.exp \
	testsuite/runtest.main/pr48155-csh.sh \
	testsuite/runtest.main/pr48155.exp \
	testsuite/runtest.main/pr53427.exp \
	testsuite/runtest.main/nested/testsuite/pr53427.test/a.exp \
	testsuite/runtest.main/nested/testsuite/pr53427.test/b.exp \
	testsuite/lib/bohman_ssd.exp \
	testsuite/lib/launcher.exp \
	testsuite/lib/libdejagnu.exp \
	testsuite/lib/libsup.exp \
	testsuite/lib/report-card.exp \
	testsuite/lib/runtest.exp \
	testsuite/lib/util-defs.exp \
	testsuite/libdejagnu/unit.exp \
	testsuite/libdejagnu/tunit.exp

DEJATOOL = launcher libdejagnu report-card runtest

# We override runtest so that the testsuite is run with this version
# of DejaGnu instead of an installed version.
RUNTEST = ${top_srcdir}/runtest

AM_CPPFLAGS = -I$(top_srcdir)
check_PROGRAMS = \
	testsuite/libdejagnu/unit-c \
	testsuite/libdejagnu/unit-cxx \
	testsuite/libdejagnu/unit-ccxxmix
testsuite_libdejagnu_unit_c_SOURCES = testsuite/libdejagnu/unit-c.c
testsuite_libdejagnu_unit_cxx_SOURCES = testsuite/libdejagnu/unit-cxx.cxx
testsuite_libdejagnu_unit_ccxxmix_SOURCES = testsuite/libdejagnu/unit-ccxxmix.cxx

# Documentation.

TEXINFO_TEX = doc/texinfo.tex
dist_man_MANS = doc/dejagnu.1 \
	doc/dejagnu-help.1 \
	doc/dejagnu-report-card.1 \
	doc/runtest.1
info_TEXINFOS = doc/dejagnu.texi
doc_dejagnu_TEXINFOS = doc/fdl.texi

pip-install:
	pip3 install --upgrade -e $(top_srcdir)