4 exec_prefix = $(prefix)
5 bindir = $(exec_prefix)/bin
6 libdir = $(exec_prefix)/lib
7 tooldir = $(libdir)/$(target_alias)
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)
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)" \
119 @rootme=`pwd`/ ; export rootme ; \
120 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
121 $(MAKE) subdir_do DO=info "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
124 @rootme=`pwd`/ ; export rootme ; \
125 $(MAKE) subdir_do DO=install-info "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
128 -parent=`echo $(datadir)|sed -e 's@/[^/]*$$@@'`; \
129 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
130 -if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
131 -parent=`echo $(targetdir)|sed -e 's@/[^/]*$$@@'`; \
132 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
133 -if [ -d $(targetdir) ] ; then true ; else mkdir $(targetdir) ; fi
134 -for file in ./lib/*.exp; \
136 $(INSTALL_DATA) $$file $(datadir) ; \
138 -for file in ./*-init.exp; \
140 $(INSTALL_DATA) $$file $(targetdir) ; \
144 # -rm -f $(datadir)/*.exp
147 site.exp: ./config.status
148 @echo "Making a new config file..."
151 -@mv site.exp site.bak
152 @echo "## these variables are automatically generated by make ##" > ./tmp0
153 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
154 @echo "# add them to the last section" >> ./tmp0
155 @echo "set host_os ${host_os}" >> ./tmp0
156 @echo "set host_alias ${host_alias}" >> ./tmp0
157 @echo "set host_cpu ${host_cpu}" >> ./tmp0
158 @echo "set host_vendor ${host_vendor}" >> ./tmp0
159 @echo "set target_os ${target_os}" >> ./tmp0
160 @echo "set target_alias ${target_alias}" >> ./tmp0
161 @echo "set target_cpu ${target_cpu}" >> ./tmp0
162 @echo "set target_vendor ${target_vendor}" >> ./tmp0
163 @echo "set srcdir ${srcdir}" >> ./tmp0
164 @echo "set exec_prefix ${exec_prefix}" >> ./tmp0
165 @echo "set objdir `pwd`" >> ./tmp0
166 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
167 @cat ./tmp0 > site.exp
168 @cat site.bak | sed \
169 -e '1,/^## All variables above are.*##/ d' >> site.exp
173 $(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB)
176 @for i in $(DODIRS); do \
177 if [ -d ./$$i ] ; then \
178 if (rootme=`pwd`/ ; export rootme ; \
179 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
181 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
190 for dir in ${SUBDIRS}; \
193 if [ -d $$dir ]; then \
194 (rootme=`pwd`/ ; export rootme ; \
195 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
196 cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
201 -rm -f *~ core *.o a.out xgdb *.x
202 for dir in ${SUBDIRS}; \
205 if [ -d $$dir ]; then \
206 (cd $$dir; $(MAKE) clean); \
210 distclean realclean: clean
212 -rm -f Makefile config.status *-init.exp
213 -rm -fr *.log summary detail
214 for dir in ${SUBDIRS}; \
217 (cd $$dir; $(MAKE) distclean); \
220 Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
221 $(SHELL) ./config.status