fix stabs.texinfo xref bugs
[deliverable/binutils-gdb.git] / gdb / 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/dejagnu
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 CFLAGS = -g
33 CHILLFLAGS = $(CFLAGS)
34 CHILL_LIB = -lchill
35 CXXFLAGS = -g
36
37 LINK= ln -s
38 SUBDIRS=
39 RUNTEST = runtest
40 RUNTESTFLAGS =
41
42 CC = ` \
43 if [ -f $${rootme}/../../gcc/Makefile ] ; then \
44 echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \
45 else \
46 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
47 echo cc; \
48 else \
49 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
50 fi; \
51 fi`
52
53 CHILL = ` \
54 if [ -f $${rootme}/../../gcc/Makefile ] ; then \
55 echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/ -L$${rootme}../../chillrt/; \
56 else \
57 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
58 echo gcc; \
59 else \
60 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
61 fi; \
62 fi`
63
64 CXX = ` \
65 if [ -f $${rootme}/../../gcc/Makefile ] ; then \
66 echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \
67 else \
68 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
69 echo gcc; \
70 else \
71 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
72 fi; \
73 fi`
74
75 GDB = ` \
76 if [ -f $${rootme}/../gdb ] ; then \
77 echo $${rootme}/../gdb ; \
78 else echo gdb; \
79 fi`
80
81 GDBFLAGS =
82
83 EXPECT = `if [ -f $${rootme}../../expect/expect ] ; \
84 then echo $${rootme}../../expect/expect ; \
85 else echo expect; fi`
86
87 SUBDIRS=gdb.t00 gdb.t01 gdb.t02 gdb.t03 gdb.t04 gdb.t05 gdb.t06 \
88 gdb.t07 gdb.t08 gdb.t09 gdb.t10 gdb.t11 gdb.t12 gdb.t13 gdb.t15 \
89 gdb.t16 gdb.t17 gdb.t20 gdb.t21 gdb.t22 gdb.t23 gdb.t30 gdb.t31
90
91 #### host, target, and site specific Makefile frags come in here.
92
93 FLAGS_TO_PASS = \
94 "CXX=$(CXX)" \
95 "CXXFLAGS=$(CXXFLAGS)" \
96 "CC=$(CC)" \
97 "CFLAGS=$(CFLAGS)" \
98 "CHILLFLAGS=$(CHILLFLAGS)" \
99 "CHILL=$(CHILL)" \
100 "CHILL_LIB=$(CHILL_LIB)" \
101 "INSTALL=$(INSTALL)" \
102 "INSTALL_DATA=$(INSTALL_DATA)" \
103 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
104 "LDFLAGS=$(LDFLAGS)" \
105 "LINK=$(LINK)" \
106 "LOADLIBES=$(LOADLIBES)" \
107 "MAKEINFO=$(MAKEINFO)" \
108 "exec_prefix=$(exec_prefix)" \
109 "prefix=$(prefix)"
110
111 all: subdirs
112
113 .NOEXPORT:
114 INFODIRS=doc
115 info:
116 install-info:
117 dvi:
118
119 install:
120
121 uninstall: force
122
123 site.exp: ./config.status Makefile
124 @echo "Making a new config file..."
125 -@rm -f ./tmp?
126 @touch site.exp
127 -@mv site.exp site.bak
128 @echo "## these variables are automatically generated by make ##" > ./tmp0
129 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
130 @echo "# add them to the last section" >> ./tmp0
131 @echo "set host_os ${host_os}" >> ./tmp0
132 @echo "set host_alias ${host_alias}" >> ./tmp0
133 @echo "set host_cpu ${host_cpu}" >> ./tmp0
134 @echo "set host_vendor ${host_vendor}" >> ./tmp0
135 @echo "set target_os ${target_os}" >> ./tmp0
136 @echo "set target_alias ${target_alias}" >> ./tmp0
137 @echo "set target_cpu ${target_cpu}" >> ./tmp0
138 @echo "set target_vendor ${target_vendor}" >> ./tmp0
139 @echo "set host_triplet ${host_canonical}" >> ./tmp0
140 @echo "set target_triplet ${target_canonical}" >> ./tmp0
141 @echo "set srcdir ${srcdir}" >> ./tmp0
142 @echo "set objdir `pwd`" >> ./tmp0
143 @echo "set tool gdb" >> ./tmp0
144 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
145 @cat ./tmp0 > site.exp
146 @cat site.bak | sed \
147 -e '1,/^## All variables above are.*##/ d' >> site.exp
148 -@rm -f ./tmp?
149
150 installcheck:
151 check: site.exp all
152 rootme=`pwd`; export rootme; \
153 $(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB) --srcdir $(srcdir)
154
155 subdir_do: force
156 @for i in $(DODIRS); do \
157 if [ -d ./$$i ] ; then \
158 if (rootme=`pwd`/ ; export rootme ; \
159 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
160 cd ./$$i; \
161 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
162 else exit 1 ; fi ; \
163 else true ; fi ; \
164 done
165
166 force:;
167
168
169 subdirs:
170 for dir in ${SUBDIRS}; \
171 do \
172 echo "$$dir:"; \
173 if [ -d $$dir ]; then \
174 (rootme=`pwd`/ ; export rootme ; \
175 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
176 cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
177 fi; \
178 done
179
180 clean mostlyclean:
181 -rm -f *~ core *.o a.out xgdb *.x
182 for dir in ${SUBDIRS}; \
183 do \
184 echo "$$dir:"; \
185 if [ -d $$dir ]; then \
186 (cd $$dir; $(MAKE) clean); \
187 fi; \
188 done
189
190 distclean realclean: clean
191 -rm -f *~ core
192 -rm -f Makefile config.status *-init.exp
193 -rm -fr *.log summary detail
194 for dir in ${SUBDIRS}; \
195 do \
196 echo "$$dir:"; \
197 (cd $$dir; $(MAKE) distclean); \
198 done
199
200 Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
201 $(SHELL) ./config.status
This page took 0.032377 seconds and 4 git commands to generate.