Reorganized test hierarchy to categorize tests.
[external/binutils.git] / gas / testsuite / Makefile.in
1 srcdir = .
2 prefix = /usr/local
3
4 exec_prefix = $(prefix)
5 bindir = $(exec_prefix)/bin
6 libdir = $(exec_prefix)/lib
7 tooldir = $(libdir)/$(target_alias)
8
9 datadir = $(exec_prefix)/lib/deja-gnu
10 mandir = $(prefix)/man
11 man1dir = $(mandir)/man1
12 man2dir = $(mandir)/man2
13 man3dir = $(mandir)/man3
14 man4dir = $(mandir)/man4
15 man5dir = $(mandir)/man5
16 man6dir = $(mandir)/man6
17 man7dir = $(mandir)/man7
18 man8dir = $(mandir)/man8
19 man9dir = $(mandir)/man9
20 infodir = $(prefix)/info
21 includedir = $(prefix)/include
22 gxx_includedir = $(tooldir)/g++-include
23 docdir = $(datadir)/doc
24 targetdir = $(datadir)/$(target_alias)
25
26 SHELL = /bin/sh
27
28 INSTALL = install -c
29 INSTALL_PROGRAM = $(INSTALL)
30 INSTALL_DATA = $(INSTALL)
31
32 GCC = gcc
33 GCCFLAGS = -g -O
34
35 LINK=   ln -s
36
37 RUNTEST = runtest
38 RUNTESTFLAGS =
39
40 # The ugliness in the program_transform_name version seems necessary
41 # to work around some strange behavior of /bin/sh on 386bsd (0.1).
42 AS_FOR_TARGET = ` \
43   if [ -f ../Makefile ] ; then \
44     echo ../as.new ; \
45   else \
46     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
47       echo $(AS); \
48     else \
49       (set -e ; t='$(program_transform_name)'; echo as | sed -e '' $$t); \
50     fi; \
51   fi`
52
53 #### host, target, and site specific Makefile frags come in here.
54
55 all:
56
57 .NOEXPORT:
58
59 install:
60
61 uninstall: force
62
63 site.exp: ./Makefile
64         @echo "Making a new config file..."
65         -@rm -f ./tmp?
66         @touch site.exp
67         -@mv site.exp site.bak
68         @echo "## these variables are automatically generated by make ##" > ./tmp0
69         @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
70         @echo "# add them to the last section" >> ./tmp0
71         @echo "set host_os ${host_os}" >> ./tmp0
72         @echo "set host_alias ${host_alias}" >> ./tmp0
73         @echo "set host_cpu ${host_cpu}" >> ./tmp0
74         @echo "set host_vendor ${host_vendor}" >> ./tmp0
75         @echo "set target_os ${target_os}" >> ./tmp0
76         @echo "set target_alias ${target_alias}" >> ./tmp0
77         @echo "set target_cpu ${target_cpu}" >> ./tmp0
78         @echo "set target_vendor ${target_vendor}" >> ./tmp0
79         @echo "set host_triplet ${host_canonical}" >> ./tmp0
80         @echo "set target_triplet ${target_canonical}" >> ./tmp0
81         @echo "set target_canonical ${target_canonical}" >> ./tmp0
82         @echo "set srcdir ${srcdir}" >> ./tmp0
83         @echo "set exec_prefix ${exec_prefix}" >> ./tmp0
84         @echo "set objdir `pwd`" >> ./tmp0
85         @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
86                 @cat ./tmp0 > site.exp
87         @cat site.bak | sed \
88                         -e '1,/^## All variables above are.*##/ d' >> site.exp
89         @rm -f ./tmp1 ./tmp0
90
91 check:  site.exp
92         $(RUNTEST) $(RUNTESTFLAGS) --tool gas AS=$(AS_FOR_TARGET) ASFLAGS=
93
94 force:
95
96 clean:
97         -rm -f *~ core *.o a.out xgdb *.x a.out b.out
98
99 distclean: clean
100         -rm -f *~ core
101         -rm -f Makefile config.status
102         -rm -fr *.log summary detail
103
104 Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
105         $(SHELL) ./config.status
106