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.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
148 $(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB)
151 @for i in $(DODIRS); do \
152 if [ -d ./$$i ] ; then \
153 if (rootme=`pwd`/ ; export rootme ; \
154 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
156 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
165 for dir in ${SUBDIRS}; \
168 if [ -d $$dir ]; then \
169 (rootme=`pwd`/ ; export rootme ; \
170 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
171 cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
176 -rm -f *~ core *.o a.out xgdb *.x
177 for dir in ${SUBDIRS}; \
180 if [ -d $$dir ]; then \
181 (cd $$dir; $(MAKE) clean); \
185 distclean realclean: clean
187 -rm -f Makefile config.status *-init.exp
188 -rm -fr *.log summary detail
189 for dir in ${SUBDIRS}; \
192 (cd $$dir; $(MAKE) distclean); \
195 Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
196 $(SHELL) ./config.status