* cp-tree.h (struct lang_decl_flags): Add comdat.
[official-gcc.git] / libio / config.shared
blob1b23b353090078cd65dceb2da4944c502bcdf861
1 # Copyright (C) 1993, 1995, 1997 Free Software Foundation
2
3 # This file is part of the GNU IO Library.  This library is free
4 # software; you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with GNU CC; see the file COPYING.  If not, write to
16 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 # Significant variables:
20 # Note that TO_TOPDIR does *not* include multilib.
21 test -z "${TO_TOPDIR}" && TO_TOPDIR=${TOLIBGXX}../
22 # Native configurations build target libraries in directories at the same
23 # level as the rest of the tree.  Cross configurations build target libraries
24 # one level deeper.  TO_REAL_TOPDIR accounts for this.
25 # Obviously, TO_REAL_TOPDIR can only be used in the build tree.
26 if [ "${with_target_subdir}" != "." ] ; then
27   TO_REAL_TOPDIR="${TO_TOPDIR}../"
28 else
29   TO_REAL_TOPDIR="${TO_TOPDIR}"
31 DOING_LIBGXX=${DOING_LIBGXX-false}
32 THIS_FILE="${srcdir}/${TOLIBGXX}config.shared"
34 echo "# Start of package fragment generated by ${THIS_FILE}."
35 echo ""
37 # Multilib support.
38 echo 'MULTISRCTOP ='
39 echo 'MULTIBUILDTOP ='
40 echo 'MULTIDIRS ='
41 echo 'MULTISUBDIR ='
42 echo 'MULTIDO = true'
43 echo 'MULTICLEAN = true'
44 echo ''
46 # TOLIBGXX
47 # MOSTLYCLEAN
48 # CLEAN
49 # DISTCLEAN
50 # REALCLEAN
51 # SUBDIRS [defaults to (configdirs)]
52 # INFO_FILES   List of (basenames of) texinfo files
53 # INFO_SUBDIRS [default: empty]  sub-directories containing documentation
55 # ??? This doesn't appear to be used by us or any of our callers.
56 # Note that all uses in this file are single-quoted.
57 rootme=${rootme-`pwd`}
59 # libg++ uses the convention that $rootme includes a trailing '/'.
60 # We use that in the definition of TOPDIR.  $rootme is either empty
61 # or an absolute pathname to the current directory (with trailing '/').
62 TOPDIR=${TOPDIR-'$${rootme}$(MULTIBUILDTOP)'${TO_REAL_TOPDIR}}
63 echo '#' TOPDIR="${TOPDIR} invsubdir=${invsubdir} subdir=${subdir}"
64 SUBDIRS=${SUBDIRS-${configdirs}}
65 CHECK_SUBDIRS=${CHECK_SUBDIRS-${SUBDIRS}}
67 echo "srcdir = ${srcdir}"
68 echo "SUBDIRS = ${SUBDIRS}"
69 echo "CHECK_SUBDIRS = ${CHECK_SUBDIRS}"
71 echo "prefix = ${prefix-/usr/local}"
72 echo "exec_prefix = ${exec_prefix-'${prefix}'}"
74 echo 'bindir = $(exec_prefix)/bin'
75 echo 'libdir = $(exec_prefix)/lib'
77 echo 'datadir = $(prefix)/lib'
78 echo 'mandir = $(prefix)/man'
79 echo 'man1dir = $(mandir)/man1'
80 echo 'man2dir = $(mandir)/man2'
81 echo 'man3dir = $(mandir)/man3'
82 echo 'man4dir = $(mandir)/man4'
83 echo 'man5dir = $(mandir)/man5'
84 echo 'man6dir = $(mandir)/man6'
85 echo 'man7dir = $(mandir)/man7'
86 echo 'man8dir = $(mandir)/man8'
87 echo 'man9dir = $(mandir)/man9'
89 echo 'infodir = $(prefix)/info'
90 echo 'includedir = $(prefix)/include'
91 echo 'docdir = $(datadir)/doc'
92 echo ''
93 echo 'SHELL = /bin/sh'
94 echo ''
95 case "$srcdir" in
96   /*) echo 'INSTALL = $(srcdir)'/"${TO_TOPDIR}install-sh -c" ;;
97   .)  echo 'INSTALL = $${rootme}'"${with_multisrctop}${TO_REAL_TOPDIR}install-sh -c" ;;
98   *)  echo 'INSTALL = $${rootme}$(srcdir)'/"${TO_TOPDIR}install-sh -c" ;;
99 esac
100 echo 'INSTALL_PROGRAM = $(INSTALL)'
101 echo 'INSTALL_DATA = $(INSTALL)'
102 echo ''
103 echo 'AR = `if [ -f' ${TOPDIR}'binutils/ar ] ; \'
104 echo "  then echo ${TOPDIR}binutils/ar ; "'\'
105 echo '  else echo ar ; fi`'
106 echo 'AR_FLAGS = rc'
107 echo 'RANLIB = `if [ -f' ${TOPDIR}'binutils/ranlib ] ; \'
108 echo '  then echo '${TOPDIR}'binutils/ranlib ; \'
109 echo '  else echo ranlib ; fi`'
110 echo 'NM = `if [ -f' ${TOPDIR}'binutils/nm.new ] ; \'
111 echo '  then echo '${TOPDIR}'binutils/nm.new ; \'
112 echo '  else echo nm ; fi`'
113 echo 'NLMCONV = `if [ -f' ${TOPDIR}'binutils/nlmconv ] ; \'
114 echo '  then echo '${TOPDIR}'binutils/nlmconv ; \'
115 echo '  else echo nlmconv ; fi`'
116 echo 'LD = `if [ -f' ${TOPDIR}'ld/ld.new ] ; \'
117 echo '  then echo '${TOPDIR}'ld/ld.new ; \'
118 echo '  else echo ld ; fi`'
119 echo ''
120 echo 'MAKEINFO = `if [ -f '${TOPDIR}'texinfo/C/makeinfo ] ; \'
121 echo '  then echo '${TOPDIR}'texinfo/C/makeinfo ; \'
122 echo '  else echo makeinfo ; fi`'
123 case "$srcdir" in
124   .) echo 'TEXIDIR = '"${with_multisrctop}${TO_REAL_TOPDIR}texinfo" ;;
125   *) echo 'TEXIDIR = $(srcdir)'/"${TO_TOPDIR}texinfo" ;;
126 esac
127 echo 'TEXI2DVI = TEXINPUTS=${TEXIDIR}:$$TEXINPUTS texi2dvi'
128 echo ''
129 echo 'CC = cc'
130 echo 'CXX = gcc'
131 echo ''
132 # FIXME!!!
133 if true ; then
134   echo 'WRAP_C_INCLUDES ='
135 else
136   echo 'WRAP_C_INCLUDES = -I$(srcdir)'/${TOLIBGXX}g++-include
138 echo 'CFLAGS = -g'
139 echo 'CXXFLAGS = -g -O'
140 echo 'LIBCFLAGS = $(CFLAGS)'
141 echo 'LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates'
142 if [ "${LIBDIR}" = "yes" ]; then
143   echo 'PICDIR = stamp-picdir'
144 else
145   echo 'PICDIR = '
148 if test "${DOING_LIBGXX}" = "true" ; then
149   echo "TOLIBGXX = ${TOLIBGXX}"
150   echo 'PROTODIR = $(srcdir)'/${TOLIBGXX}src/gen
151   echo "LIBS = -L./${TOLIBGXX} -L./${TOLIBGXX}../libstdc++ -lg++ -lstdc++"
153   # You can override iostream (e.g. in a site- or host-Makefile fragment) to:
154   # iostream (Normal iostream library)
155   # old-stream (Old stream library; no longer supported)
156   # no-stream (If you don't want iostream to be part of libg++)
157   echo 'IO_DIR = ../libio'
158   echo '# IO_DIR = no-stream'
159 elif test "${DOING_GPERF}" = "true" ; then
160   echo "IO_DIR = libio"
161   echo "TOLIBGXX = ${TOLIBGXX}"
162   echo "LIBS = -L./${TOLIBGXX} -L./${TOLIBGXX}../libstdc++ -lg++ -lstdc++"
165 if [ -z "${ALL}" ] ; then
166   if [ -n "${TARGETLIB}" ] ; then
167     ALL='$(TARGETLIB)'
168     echo "TARGETLIB = ${TARGETLIB}"
169   elif [ -n "${TARGETPROG}" ] ; then
170     ALL='${TARGETPROG}'
171     echo "TARGETPROG = ${TARGETPROG}"
172   else
173     echo "config error: neither ALL, TARGETLIB or TARGETPROG is defined" 1>&2
174   fi
177 ALL='$(PICDIR)'" ${ALL}"
179 echo "all: ${ALL} multi-all"
180 if [ "${SUBDIRS}" != "" ] ; then
181   echo '        @rootme=`pwd`/; export rootme; \'
182   echo '        $(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do'
184 echo '.PHONY: all'
185 echo ''
187 echo '.PHONY: multi-all'
188 echo 'multi-all:'
189 echo '  @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all'
190 echo ''
192 echo
193 if [ "${SUBDIRS}" != "" ] ; then
194   echo '.PHONY: subdir_do'
195   echo 'subdir_do: force'
196   echo '        @rootme=`pwd`/; export rootme; \'
197   echo '        for i in $(DODIRS); do \'
198   echo '                if [ -f  ./$$i/Makefile ] ; then \'
199   echo '                        echo "cd $$i; make $(DO) ..." ; \'
200   echo '                        (cd $$i ; $(MAKE) $(FLAGS_TO_PASS) $(DO)) || exit 1 ; \'
201   echo '                else true ; fi ; \'
202   echo '        done'
203   echo ''
204   echo '# List of variables to pass to sub-makes.  This should not be needed'
205   echo '# by GNU make or Sun make (both of which pass command-line variable'
206   echo '# overrides thouh $(MAKE)) but may be needed by older versions.'
207   echo ''
208   echo 'FLAGS_TO_PASS= \'
209   echo '        "INSTALL=$(INSTALL)" \'
210   echo '        "INSTALL_DATA=$(INSTALL_DATA)" \'
211   echo '        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \'
212   echo '        "prefix=$(prefix)" \'
213   echo '        "exec_prefix=$(exec_prefix)" \'
214   echo '        "tooldir=$(tooldir)" \'
215   echo '        "AR=$(AR)" \'
216   echo '        "AR_FLAGS=$(AR_FLAGS)" \'
217   echo '        "CC=$(CC)" \'
218   echo '        "CXX=$(CXX)" \'
219   echo '        "CFLAGS=$(CFLAGS)" \'
220   echo '        "CXXFLAGS=$(CXXFLAGS)" \'
221   echo '        "NM=$(NM)" \'
222   echo '        "RANLIB=$(RANLIB)" \'
223   echo '        "LIBCFLAGS=$(LIBCFLAGS)" \'
224   echo '        "LIBCXXFLAGS=$(LIBCXXFLAGS)" \'
225   echo '        "LOADLIBES=$(LOADLIBES)" \'
226   echo '        "LDFLAGS=$(LDFLAGS)" \'
227   echo '        "MAKEINFO=$(MAKEINFO)" \'
228   echo '        "SHLIB=$(SHLIB)" \'
229   echo '        "SHCURSES=$(SHCURSES)" \'
230   echo '        "PICFLAG=$(PICFLAG)" \'
231   echo '        "RUNTESTFLAGS=$(RUNTESTFLAGS)"'
234 echo 'NOSTDINC = -nostdinc++'
235 if test -n "${XCXXINCLUDES}" ; then
236   echo "CXXINCLUDES = ${XCXXINCLUDES} "'$(NOSTDINC)'
237 elif test "${DOING_LIBGXX}" = "true" ; then
238   echo 'CXXINCLUDES = $(NOSTDINC) -I. -I'"${TO_TOPDIR}libio"' -I$(srcdir) -I$(srcdir)/'"${TOLIBGXX}"'$(IO_DIR) -I$(srcdir)/'"${TOLIBGXX}"'../libstdc++ -I$(srcdir)/'"${TOLIBGXX}src"' $(WRAP_C_INCLUDES)'
240 if test -n "${XCINCLUDES}" ; then
241   echo "CINCLUDES = ${XCINCLUDES}"
242 elif test "${DOING_LIBGXX}" = "true" ; then
243   echo 'CINCLUDES ='
246 if [ "${LIBDIR}" = "yes" ]; then
247   echo 'XCFLAGS = $(LIBCFLAGS)'
248   echo 'XCXXFLAGS = $(LIBCXXFLAGS)'
249 else
250   echo 'XCFLAGS = $(CFLAGS)'
251   echo 'XCXXFLAGS = $(CXXFLAGS)'
254 echo '.SUFFIXES: .o .C .cc .c'
255 echo 'COMPILE.c = $(CC) -c $(XCFLAGS) $(CINCLUDES) $(MT_CFLAGS)'
256 echo '.c.o:'
257 if [ "${LIBDIR}" = "yes" ]; then
258 echo '  test -z "$(PICFLAG)" ||\'
259 echo '    $(COMPILE.c) $(PICFLAG) $< -o pic/$@'
261 echo '  $(COMPILE.c) $<'
262 [ "${TOUCH_ON_COMPILE}" = "yes" ] && echo '     @touch stamp'
263 echo 'COMPILE.cc = $(CXX) -c $(XCXXFLAGS) $(CXXINCLUDES) $(MT_CFLAGS)'
264 echo '.C.o:'
265 if [ "${LIBDIR}" = "yes" ]; then
266 echo '  test -z "$(PICFLAG)" ||\'
267 echo '    $(COMPILE.cc) $(PICFLAG) $< -o pic/$@'
269 echo '  $(COMPILE.cc) $<'
270 [ "${TOUCH_ON_COMPILE}" = "yes" ] && echo '     @touch stamp'
271 echo '.cc.o:'
272 if [ "${LIBDIR}" = "yes" ]; then
273 echo '  test -z "$(PICFLAG)" || \'
274 echo '    $(COMPILE.cc) $(PICFLAG) $< -o pic/$@'
276 echo '  $(COMPILE.cc) $<'
277 [ "${TOUCH_ON_COMPILE}" = "yes" ] && echo '     @touch stamp'
278 echo ''
280 if [ -n "${TARGETLIB}" ] ; then
281   echo TARGETLIB = ${TARGETLIB}
283 if [ -n "${TARGETPROG}" ] ; then
284   echo TARGETPROG = ${TARGETPROG}
287 if [ "${LIBDIR}" = "yes" ]; then
288   echo ''
289   echo 'stamp-picdir:'
290   echo '        if [ -n "$(PICFLAG)" ] && [ ! -d pic ]; then \'
291   echo '          mkdir pic; \'
292   echo '        else true; fi'
293   echo '        touch stamp-picdir'
296 echo ''
297 echo '.PHONY: install'
298 echo 'install:'
299 echo '.PHONY: check'
300 if [ "${CHECK}" != "check" ] ; then
301   echo "check: ${ALL} ${CHECK}"
302   if [ "${CHECK_SUBDIRS}" != "" ] ; then
303     echo '      rootme=`pwd`/; export rootme; \'
304     echo '      SAVE_LLPATH="$${SAVE_LLPATH-$$LD_LIBRARY_PATH}"; export SAVE_LLPATH; \'
305     echo '      LD_LIBRARY_PATH="$${rootme}${TOLIBGXX}../libstdc++:$${rootme}${TOLIBGXX}../libg++:$$SAVE_LLPATH"; \'
306     echo '      export LD_LIBRARY_PATH; \'
307     echo '      $(MAKE) "DODIRS=$(CHECK_SUBDIRS)" DO=check $(FLAGS_TO_PASS) subdir_do'
308   fi
311 # Generate rules for documentation (depending on INFO_FILES and INFO_SUBDIRS).
313 echo '.PHONY: info dvi install-info clean-info'
315 # emit the rule for 'info'
316 # (Note that the top-level ../Makefile.in greps for '^info:' when making
317 # a release (in "make taz"), so don't break that!)
318 if [ -z "${INFO_FILES}" ] ; then
319   echo 'info:'
320 else
321   echo info: `for file in ${INFO_FILES} ; do echo $file.info ; done`
323 if [ "${INFO_SUBDIRS}" != "" ] ; then
324   echo '        @rootme=`pwd`/; export rootme; \
325         $(MAKE) "DODIRS='${INFO_SUBDIRS}'" DO=info $(FLAGS_TO_PASS) subdir_do'
328 # emit the rule for 'dvi'
329 if [ -z "${INFO_FILES}" ] ; then
330   echo 'dvi:'
331 else
332   echo dvi: `for file in ${INFO_FILES} ; do echo $file.dvi ; done`
334 if [ "${INFO_SUBDIRS}" != "" ] ; then
335   echo '        @rootme=`pwd`/; export rootme; \
336         $(MAKE) "DODIRS='${INFO_SUBDIRS}'" DO=dvi $(FLAGS_TO_PASS) subdir_do'
339 # Emit rules for each *.info and *.dvi file
340 for file in ${INFO_FILES} ; do
341   echo ${file}.info: '$(srcdir)'/${file}.texi
342   echo '        $(MAKEINFO) -I$(srcdir) -I$(TEXIDIR) $(srcdir)/'${file}.texi -o ${file}.info
343   echo ${file}.dvi: '$(srcdir)'/${file}.texi
344   echo '        $(TEXI2DVI) $(srcdir)'/${file}.texi
345   echo "${file}.ps: ${file}.dvi"
346   echo "        dvips ${file} -o"
347 done
349 # emit the rule for install-info
350 echo 'install-info:'
351 if [ -n "${INFO_FILES}" ] ; then
352   echo '        -parent=`echo $(infodir)|sed -e' "'"'s@/[^/]*$$@@'"'"'`; \'
353   echo '        if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi'
354   echo '        -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi'
355   echo '        for i in *.info* ; do \'
356   echo '          $(INSTALL_DATA) $$i $(infodir)/$$i ; \'
357   echo '        done'
359 if [ "${INFO_SUBDIRS}" != "" ] ; then
360   echo '        @rootme=`pwd`/; export rootme; \
361         $(MAKE) "DODIRS='${INFO_SUBDIRS}'" DO=install-info $(FLAGS_TO_PASS) subdir_do'
364 # emit clean-info and clean-dvi rules
365 echo '.PHONY: do-clean-info clean-info do-clean-dvi clean-dvi'
366 echo do-clean-info:
367 if [ -n "${INFO_FILES}" ] ; then
368   echo '        rm -f *.info*'
370 echo 'do-clean-dvi:'
371 if [ -n "${INFO_FILES}" ] ; then
372   echo '        rm -f *.dvi *.aux *.cp *.cps *.fn* *.ky *.log *.pg *.toc *.tp *.vr'
374 for type in info dvi ; do
375   echo clean-${type}: do-clean-${type}
376   if [ "${INFO_SUBDIRS}" != "" ] ; then
377     echo '      @rootme=`pwd`/; export rootme; \
378         $(MAKE) "DODIRS='${NFO_SUBDIRS}'" DO=clean-'${type} '$(FLAGS_TO_PASS) subdir_do'
379   fi
380 done
382 echo ''
384 echo '.PHONY: boltcc'
385 echo 'boltcc:'
386 echo '  rootme=`pwd`/ ; export rootme ; $(MAKE) $(FLAGS_TO_PASS)'
387 echo ''
389 # Emit clean rules
391 echo ''
392 echo '# clean rules'
394 MOSTLYCLEAN="${MOSTLYCLEAN-*.o pic stamp-picdir core ${EXTRA_MOSTLYCLEAN}} `if test -n "${TOUCH_ON_COMPILE}"; then echo stamp; else true; fi`"
395 CLEAN="${CLEAN-${TARGETPROG} ${TARGETLIB}}"
396 DISTCLEAN="${DISTCLEAN-config.status Makefile *~ Make.pack target-mkfrag multilib.out ${EXTRA_DISTCLEAN-}}"
397 REALCLEAN="${REALCLEAN-depend *.info*}"
400 echo '.PHONY: mostlyclean clean distclean maintainer-clean realclean'
401 if test -z "${SUBDIRS}" ; then
402   echo "mostlyclean: clean-dvi"
403   echo "        rm -rf ${MOSTLYCLEAN}"
404   echo '        @$(MULTICLEAN) multi-clean DO=mostlyclean'
405   echo "clean: clean-dvi"
406   echo "        rm -rf ${MOSTLYCLEAN} ${CLEAN}"
407   echo '        @$(MULTICLEAN) multi-clean DO=clean'
408   echo "distclean: clean"
409   echo '        @$(MULTICLEAN) multi-clean DO=distclean'
410   echo "        rm -rf ${DISTCLEAN}"
411   echo "maintainer-clean realclean: clean clean-info"
412   echo '        @$(MULTICLEAN) multi-clean DO=maintainer-clean'
413   echo "        rm -rf ${DISTCLEAN} ${REALCLEAN}"
414 else
415   echo '.PHONY: do-clean subdir_distclean subdir_maintainer_clean'
416   echo "mostlyclean: do-clean-dvi"
417   echo "        rm -rf ${MOSTLYCLEAN}"
418   echo '        @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=mostlyclean subdir_do'
419   echo '        @$(MULTICLEAN) multi-clean DO=mostlyclean'
420   echo "do-clean: do-clean-dvi"
421   echo "        rm -rf ${MOSTLYCLEAN} ${CLEAN}"
422   echo "clean: do-clean"
423   echo '        @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=clean subdir_do'
424   echo '        @$(MULTICLEAN) multi-clean DO=clean'
425   # distclean and maintainer-clean are tricky because they remove the Makefile.
426   echo "subdir_distclean:"
427   echo '        @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=distclean subdir_do'
428   echo "distclean: do-clean subdir_distclean"
429   echo '        @$(MULTICLEAN) multi-clean DO=distclean'
430   echo "        rm -rf ${DISTCLEAN}"
431   echo "subdir_maintainer_clean:"
432   echo '        @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=maintainer-clean subdir_do'
433   echo "maintainer-clean realclean: do-clean subdir_maintainer_clean do-clean-info"
434   echo '        @$(MULTICLEAN) multi-clean DO=maintainer-clean'
435   echo "        rm -rf ${DISTCLEAN} ${REALCLEAN}"
438 echo ''
439 echo '.PHONY: force'
440 echo 'force:'
441 echo ''
442 echo '# with the gnu make, this is done automatically.'
443 echo ''
444 echo 'Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)'
445 echo '  $(SHELL) ./config.status'
446 echo ''
447 echo '.NOEXPORT:'
448 echo 'MAKEOVERRIDES='
450 cat <<"EOF"
451 DEPEND_SOURCES = ${srcdir}/*.cc ${srcdir}/*.c
452 depend.new:
453 # The sed script below attempts to make the depend output portable.
454 # It cleans up the depenency information generated by cpp.
455 # It replaces instances of $(srcdir)/ by the string '$(srcdir)/'.
456 # It removes remaining absolute files names (such as /usr/include/stdio.h).
457 # It removes lines containing only "\\".
458 # It inserts '$(MULTISRCTOP)' in '$(srcdir)/..'.
459 # In order to support SunOS VPATH, $(srcdir)/[a-z]*.{c,cc} is replaced with
460 # [a-z]*.{c,cc} (the directory part is removed).
461 # The awk script removes a continuation marker that is followed by
462 # a blank line, since that may confuse make.
463         echo "# AUTOMATICALLY GENERATED BY 'make depend' - DO NOT EDIT" \
464           >depend.new
465         $(CXX) -M $(CXXINCLUDES) $(DEPEND_SOURCES) \
466         | sed -e 's|$(srcdir)/|$$(srcdir)/|g' \
467               -e 's| [^ ]_G_config.h| $$(_G_CONFIG_H)|g \
468               -e 's| /[^ ]*||g' \
469               -e '/^[   ]*\\$$/d' -e 's/^[      ]*$$//' \
470         | sed -e 's|$$(srcdir)/[.][.]|$$(srcdir)/$$(MULTISRCTOP)..|g' \
471               -e 's|$$(srcdir)/\([^/]*[.]c\)|\1|' \
472         | awk 'BEGIN   { prev = "" } \
473               /^( )*$$/ { if (prev ~ /\\$$/) \
474                             { prev = substr(prev,1,length(prev)-1); next } } \
475                         { print prev; prev = $$0 } \
476               END { if (prev !~ /^( )*$$/) print prev }' \
477         >> depend.new
478 $(srcdir)/depend:  depend.new
479         mv depend.new $(srcdir)/depend
482 if [ -f ${srcdir}/${subdir}/depend ] ; then
483   cat ${srcdir}/${subdir}/depend
486 echo "# End of package fragment generated by ${THIS_FILE}."