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 CHILLFLAGS = $(CFLAGS)
43 if [ -f $${rootme}/../../gcc/Makefile ] ; then \
44 echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \
46 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
49 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
54 if [ -f $${rootme}/../../gcc/Makefile ] ; then \
55 echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/ -L$${rootme}../../chillrt/; \
57 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
60 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
65 if [ -f $${rootme}/../../gcc/Makefile ] ; then \
66 echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \
68 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
71 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
76 if [ -f $${rootme}/../gdb ] ; \
77 then echo $${rootme}|sed -e 's@/[^/]*$$@@'|sed -e 's@$$@/gdb@' ; \
83 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; \
84 then echo $${rootme}/../../expect/expect ; \
87 #### host, target, and site specific Makefile frags come in here.
91 "CXXFLAGS=$(CXXFLAGS)" \
94 "CHILLFLAGS=$(CHILLFLAGS)" \
96 "CHILL_LIB=$(CHILL_LIB)" \
97 "INSTALL=$(INSTALL)" \
98 "INSTALL_DATA=$(INSTALL_DATA)" \
99 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
100 "LDFLAGS=$(LDFLAGS)" \
102 "LOADLIBES=$(LOADLIBES)" \
103 "MAKEINFO=$(MAKEINFO)" \
104 "exec_prefix=$(exec_prefix)" \
119 site.exp: ./config.status Makefile
120 @echo "Making a new config file..."
123 -@mv site.exp site.bak
124 @echo "## these variables are automatically generated by make ##" > ./tmp0
125 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
126 @echo "# add them to the last section" >> ./tmp0
127 @echo "set GDBFLAGS \"${GDBFLAGS}\"" >> ./tmp0
128 @echo "set host_os ${host_os}" >> ./tmp0
129 @echo "set host_alias ${host_alias}" >> ./tmp0
130 @echo "set host_cpu ${host_cpu}" >> ./tmp0
131 @echo "set host_vendor ${host_vendor}" >> ./tmp0
132 @echo "set target_os ${target_os}" >> ./tmp0
133 @echo "set target_alias ${target_alias}" >> ./tmp0
134 @echo "set target_cpu ${target_cpu}" >> ./tmp0
135 @echo "set target_vendor ${target_vendor}" >> ./tmp0
136 @echo "set host_triplet ${host_canonical}" >> ./tmp0
137 @echo "set target_triplet ${target_canonical}" >> ./tmp0
138 @echo "set srcdir ${srcdir}" >> ./tmp0
139 @echo "set objdir `pwd`" >> ./tmp0
140 @echo "set tool gdb" >> ./tmp0
141 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
142 @cat ./tmp0 > site.exp
143 @cat site.bak | sed \
144 -e '1,/^## All variables above are.*##/ d' >> site.exp
148 check: site.exp all just-check
150 rootme=`pwd`; export rootme; \
151 $(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB) --srcdir $(srcdir)
154 @for i in $(DODIRS); do \
155 if [ -d ./$$i ] ; then \
156 if (rootme=`pwd`/ ; export rootme ; \
157 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
159 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
168 for dir in ${SUBDIRS}; \
171 if [ -d $$dir ]; then \
172 (rootme=`pwd`/ ; export rootme ; \
173 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
174 cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
179 -rm -f *~ core *.o a.out xgdb *.x
180 for dir in ${SUBDIRS}; \
183 if [ -d $$dir ]; then \
184 (cd $$dir; $(MAKE) clean); \
188 distclean realclean: clean
190 -rm -f Makefile config.status *-init.exp
191 -rm -fr *.log summary detail *.plog *.sum *.psum site.*
192 for dir in ${SUBDIRS}; \
195 (cd $$dir; $(MAKE) distclean); \
198 Makefile : $(srcdir)/Makefile.in $(srcdir)/configure.in $(host_makefile_frag) $(target_makefile_frag)
199 $(SHELL) ./config.status