4 exec_prefix = $(prefix)
5 bindir = $(exec_prefix)/bin
6 libdir = $(exec_prefix)/lib
7 tooldir
= $(libdir)/$(target_alias
)
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
)
29 INSTALL_PROGRAM
= $(INSTALL
)
30 INSTALL_DATA
= $(INSTALL
)
33 $(start-sanitize-chill
)
34 CHILLFLAGS
= $(CFLAGS
)
45 if [ -f $${rootme}../../gcc/Makefile ] ; then \
46 echo $${rootme}../../gcc/xgcc -B$${rootme}../../gcc/; \
48 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
51 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
55 $(start-sanitize-chill
)
57 if [ -f $${rootme}../../gcc/Makefile ] ; then \
58 echo $${rootme}../../gcc/xgcc -B$${rootme}../../gcc/ -L$${rootme}../../chillrt/; \
60 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
63 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
69 if [ -f $${rootme}../../gcc/Makefile ] ; then \
70 echo $${rootme}../../gcc/xgcc -B$${rootme}../../gcc/; \
72 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
75 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
79 GDB
= `if [ -f $${rootme}../gdb ] ; \
80 then echo $${rootme}../gdb ; \
84 EXPECT
= `if [ -f $${rootme}../../expect/expect ] ; \
85 then echo $${rootme}../../expect/expect ; \
88 SUBDIRS
=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 \
90 gdb.t16 gdb.t17 gdb.t20 gdb.t21 gdb.t22 gdb.t23 gdb.t30 gdb.t31
92 #### host, target, and site specific Makefile frags come in here.
96 "CXXFLAGS=$(CXXFLAGS)" \
99 $(start-sanitize-chill
)\
100 "CHILLFLAGS=$(CHILLFLAGS)" \
102 "CHILL_LIB=$(CHILL_LIB)" \
103 $(end-sanitize-chill
)\
104 "INSTALL=$(INSTALL)" \
105 "INSTALL_DATA=$(INSTALL_DATA)" \
106 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
107 "LDFLAGS=$(LDFLAGS)" \
109 "LOADLIBES=$(LOADLIBES)" \
110 "MAKEINFO=$(MAKEINFO)" \
111 "exec_prefix=$(exec_prefix)" \
123 -parent
=`echo $(datadir)|sed -e 's@/[^/]*$$@@'`; \
124 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
125 -if
[ -d
$(datadir) ] ; then true
; else mkdir
$(datadir) ; fi
126 -parent
=`echo $(targetdir)|sed -e 's@/[^/]*$$@@'`; \
127 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
128 -if
[ -d
$(targetdir
) ] ; then true
; else mkdir
$(targetdir
) ; fi
129 -for file in .
/lib
/*.exp
; \
131 $(INSTALL_DATA
) $$file $(datadir) ; \
133 -for file in .
/*-init.exp
; \
135 $(INSTALL_DATA
) $$file $(targetdir
) ; \
139 # -rm -f $(datadir)/*.exp
142 site.exp
: .
/config.status
143 @echo
"Making a new config file..."
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
169 $(RUNTEST
) $(RUNTESTFLAGS
) --tool gdb GDB
=$(GDB
)
172 @for i in
$(DODIRS
); do \
173 if
[ -d .
/$$i ] ; then \
174 if
(rootme
=`pwd`/ ; export rootme
; \
175 rootsrc
=`cd $(srcdir); pwd`/ ; export rootsrc
; \
177 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
186 for
dir in
${SUBDIRS}; \
189 if
[ -d
$$dir ]; then \
190 (rootme
=`pwd`/ ; export rootme
; \
191 rootsrc
=`cd $(srcdir); pwd`/ ; export rootsrc
; \
192 cd
$$dir; $(MAKE
) $(FLAGS_TO_PASS
)); \
197 -rm -f
*~ core
*.o a.out xgdb
*.x
198 for
dir in
${SUBDIRS}; \
201 if
[ -d
$$dir ]; then \
202 (cd
$$dir; $(MAKE
) clean); \
206 distclean realclean: clean
208 -rm -f Makefile config.status
*-init.exp
209 -rm -fr
*.log summary detail
210 for
dir in
${SUBDIRS}; \
213 (cd
$$dir; $(MAKE
) distclean); \
216 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
217 $(SHELL
) .
/config.status