* configure.in (subdirs): Put back gdb.t17 which mysteriously
[deliverable/binutils-gdb.git] / gdb / testsuite / Makefile.in
CommitLineData
bf3d2b75
MW
1srcdir = .
2prefix = /usr/local
3
4exec_prefix = $(prefix)
5bindir = $(exec_prefix)/bin
6libdir = $(exec_prefix)/lib
7tooldir = $(libdir)/$(target_alias)
8
ebc0f582 9datadir = $(exec_prefix)/lib/dejagnu
bf3d2b75
MW
10mandir = $(prefix)/man
11man1dir = $(mandir)/man1
12man2dir = $(mandir)/man2
13man3dir = $(mandir)/man3
14man4dir = $(mandir)/man4
15man5dir = $(mandir)/man5
16man6dir = $(mandir)/man6
17man7dir = $(mandir)/man7
18man8dir = $(mandir)/man8
19man9dir = $(mandir)/man9
20infodir = $(prefix)/info
21includedir = $(prefix)/include
22gxx_includedir = $(tooldir)/g++-include
23docdir = $(datadir)/doc
24targetdir = $(datadir)/$(target_alias)
25
26SHELL = /bin/sh
27
28INSTALL = install -c
29INSTALL_PROGRAM = $(INSTALL)
30INSTALL_DATA = $(INSTALL)
31
bf3d2b75 32CFLAGS = -g
29aa49d4 33$(start-sanitize-chill)
bf3d2b75
MW
34CHILLFLAGS = $(CFLAGS)
35CHILL_LIB = -lchill
36$(end-sanitize-chill)
bf3d2b75
MW
37CXXFLAGS = -g -O
38
39LINK= ln -s
40SUBDIRS=
29aa49d4
RS
41RUNTEST = runtest
42RUNTESTFLAGS =
bf3d2b75 43
29aa49d4
RS
44CC = ` \
45 if [ -f $${rootme}../../gcc/Makefile ] ; then \
46 echo $${rootme}../../gcc/xgcc -B$${rootme}../../gcc/; \
bf3d2b75
MW
47 else \
48 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
29aa49d4 49 echo cc; \
bf3d2b75
MW
50 else \
51 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
52 fi; \
53 fi`
54
55$(start-sanitize-chill)
29aa49d4
RS
56CHILL = ` \
57 if [ -f $${rootme}../../gcc/Makefile ] ; then \
58 echo $${rootme}../../gcc/xgcc -B$${rootme}../../gcc/ -L$${rootme}../../chillrt/; \
bf3d2b75
MW
59 else \
60 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
29aa49d4 61 echo gcc; \
bf3d2b75
MW
62 else \
63 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
64 fi; \
65 fi`
66$(end-sanitize-chill)
67
29aa49d4
RS
68CXX = ` \
69 if [ -f $${rootme}../../gcc/Makefile ] ; then \
70 echo $${rootme}../../gcc/xgcc -B$${rootme}../../gcc/; \
bf3d2b75
MW
71 else \
72 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
29aa49d4 73 echo gcc; \
bf3d2b75
MW
74 else \
75 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
76 fi; \
77 fi`
78
29aa49d4
RS
79GDB = `if [ -f $${rootme}../gdb ] ; \
80 then echo $${rootme}../gdb ; \
bf3d2b75
MW
81 else echo gdb; fi`
82GDBFLAGS =
83
29aa49d4
RS
84EXPECT = `if [ -f $${rootme}../../expect/expect ] ; \
85 then echo $${rootme}../../expect/expect ; \
bf3d2b75
MW
86 else echo expect; fi`
87
29aa49d4
RS
88SUBDIRS=gdb.t00 gdb.t01 gdb.t02 gdb.t03 gdb.t04 gdb.t05 gdb.t06 \
89 gdb.t07 gdb.t08 gdb.t09 gdb.t10 gdb.t11 gdb.t12 gdb.t13 gdb.t15 \
bc803007 90 gdb.t16 gdb.t17 gdb.t20 gdb.t21 gdb.t22 gdb.t23 gdb.t30 gdb.t31
29aa49d4 91
bf3d2b75
MW
92#### host, target, and site specific Makefile frags come in here.
93
94FLAGS_TO_PASS = \
bf3d2b75
MW
95 "CXX=$(CXX)" \
96 "CXXFLAGS=$(CXXFLAGS)" \
bf3d2b75 97 "CC=$(CC)" \
bf3d2b75
MW
98 "CFLAGS=$(CFLAGS)" \
99 $(start-sanitize-chill)\
100 "CHILLFLAGS=$(CHILLFLAGS)" \
29aa49d4 101 "CHILL=$(CHILL)" \
bf3d2b75
MW
102 "CHILL_LIB=$(CHILL_LIB)" \
103 $(end-sanitize-chill)\
bf3d2b75
MW
104 "INSTALL=$(INSTALL)" \
105 "INSTALL_DATA=$(INSTALL_DATA)" \
106 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
107 "LDFLAGS=$(LDFLAGS)" \
108 "LINK=$(LINK)" \
bf3d2b75
MW
109 "LOADLIBES=$(LOADLIBES)" \
110 "MAKEINFO=$(MAKEINFO)" \
bf3d2b75
MW
111 "exec_prefix=$(exec_prefix)" \
112 "prefix=$(prefix)"
113
114all: subdirs
115
116.NOEXPORT:
117INFODIRS=doc
118info:
bf3d2b75 119install-info:
21ce979a 120dvi:
bf3d2b75
MW
121
122install:
29aa49d4 123 -parent=`echo $(datadir)|sed -e 's@/[^/]*$$@@'`; \
bf3d2b75 124 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
bf3d2b75 125 -if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
29aa49d4
RS
126 -parent=`echo $(targetdir)|sed -e 's@/[^/]*$$@@'`; \
127 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
bf3d2b75
MW
128 -if [ -d $(targetdir) ] ; then true ; else mkdir $(targetdir) ; fi
129 -for file in ./lib/*.exp; \
130 do \
131 $(INSTALL_DATA) $$file $(datadir) ; \
132 done
133 -for file in ./*-init.exp; \
134 do \
135 $(INSTALL_DATA) $$file $(targetdir) ; \
136 done
137
138uninstall: force
139# -rm -f $(datadir)/*.exp
140 -rm -fr $(targetdir)
141
1ee369e8
RS
142site.exp: ./config.status
143 @echo "Making a new config file..."
144 -@rm -f ./tmp?
145 @touch site.exp
146 -@mv site.exp site.bak
147 @echo "## these variables are automatically generated by make ##" > ./tmp0
148 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
149 @echo "# add them to the last section" >> ./tmp0
150 @echo "set host_os ${host_os}" >> ./tmp0
151 @echo "set host_alias ${host_alias}" >> ./tmp0
152 @echo "set host_cpu ${host_cpu}" >> ./tmp0
153 @echo "set host_vendor ${host_vendor}" >> ./tmp0
154 @echo "set target_os ${target_os}" >> ./tmp0
155 @echo "set target_alias ${target_alias}" >> ./tmp0
156 @echo "set target_cpu ${target_cpu}" >> ./tmp0
157 @echo "set target_vendor ${target_vendor}" >> ./tmp0
158 @echo "set srcdir ${srcdir}" >> ./tmp0
159 @echo "set exec_prefix ${exec_prefix}" >> ./tmp0
160 @echo "set objdir `pwd`" >> ./tmp0
161 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
162 @cat ./tmp0 > site.exp
163 @cat site.bak | sed \
164 -e '1,/^## All variables above are.*##/ d' >> site.exp
165 @rm -f ./tmp1 ./tmp0
166
21ce979a 167installcheck:
1ee369e8 168check: all site.exp
29aa49d4
RS
169 $(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB)
170
bf3d2b75
MW
171subdir_do: force
172 @for i in $(DODIRS); do \
173 if [ -d ./$$i ] ; then \
174 if (rootme=`pwd`/ ; export rootme ; \
175 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
176 cd ./$$i; \
177 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
178 else exit 1 ; fi ; \
179 else true ; fi ; \
180 done
29aa49d4
RS
181
182force:;
bf3d2b75
MW
183
184
185subdirs:
186 for dir in ${SUBDIRS}; \
187 do \
188 echo "$$dir:"; \
189 if [ -d $$dir ]; then \
190 (rootme=`pwd`/ ; export rootme ; \
191 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
192 cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
193 fi; \
194 done
195
29aa49d4 196clean mostlyclean:
bf3d2b75 197 -rm -f *~ core *.o a.out xgdb *.x
29aa49d4
RS
198 for dir in ${SUBDIRS}; \
199 do \
200 echo "$$dir:"; \
201 if [ -d $$dir ]; then \
202 (cd $$dir; $(MAKE) clean); \
203 fi; \
204 done
205
206distclean realclean: clean
bf3d2b75
MW
207 -rm -f *~ core
208 -rm -f Makefile config.status *-init.exp
209 -rm -fr *.log summary detail
29aa49d4
RS
210 for dir in ${SUBDIRS}; \
211 do \
212 echo "$$dir:"; \
213 (cd $$dir; $(MAKE) distclean); \
214 done
bf3d2b75
MW
215
216Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
217 $(SHELL) ./config.status
This page took 0.039811 seconds and 4 git commands to generate.