#
# You should have received a copy of the GNU General Public License
# along with GNU CC; see the file COPYING. If not, write to
-# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# the Free Software Foundation, 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA. */
# File descriptor usage:
# 1: All macros which need to be re-definable by any target fragments
fi
fi
-ALL='$(PICDIR)'" ${ALL}"
-
echo >&2 "all: ${ALL} multi-all"
if [ "${SUBDIRS}" != "" ] ; then
echo >&2 ' @rootme=`pwd`/; export rootme; \'
echo >&2 ' $(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do'
fi
+if [ "${LIBDIR}" = "yes" ]; then
+ echo >&2 "${ALL} "'multi-all: $(PICDIR)'
+fi
echo >&2 '.PHONY: all'
echo >&2 ''
echo >&2 'COMPILE.c = $(CC) -c $(XCFLAGS) $(CINCLUDES) $(MT_CFLAGS)'
echo >&2 '.c.o:'
if [ "${LIBDIR}" = "yes" ]; then
-echo >&2 ' test x"$(enable_shared)" != xyes ||\'
-echo >&2 ' $(COMPILE.c) $(PICFLAG) $< -o pic/$@'
+echo >&2 ' if [ x"$(PICFLAG)" != x ]; then \'
+echo >&2 ' $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \'
+echo >&2 ' else true; fi'
fi
echo >&2 ' $(COMPILE.c) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo >&2 ' @touch stamp'
echo >&2 'COMPILE.cc = $(CXX) -c $(XCXXFLAGS) $(CXXINCLUDES) $(MT_CFLAGS)'
echo >&2 '.C.o:'
if [ "${LIBDIR}" = "yes" ]; then
-echo >&2 ' test x"$(enable_shared)" != xyes ||\'
-echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@'
+echo >&2 ' if [ x"$(PICFLAG)" != x ]; then \'
+echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@; \'
+echo >&2 ' else true; fi'
fi
echo >&2 ' $(COMPILE.cc) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo >&2 ' @touch stamp'
echo >&2 '.cc.o:'
if [ "${LIBDIR}" = "yes" ]; then
-echo >&2 ' test x"$(enable_shared)" != xyes || \'
-echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@'
+echo >&2 ' if [ x"$(PICFLAG)" != x ]; then \'
+echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@; \'
+echo >&2 ' else true; fi'
fi
echo >&2 ' $(COMPILE.cc) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo >&2 ' @touch stamp'
if [ "${LIBDIR}" = "yes" ]; then
echo >&2 ''
echo >&2 'stamp-picdir:'
- echo >&2 ' if [ x"$(enable_shared)" = xyes ] && [ ! -d pic ]; then \'
+ echo >&2 ' if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \'
echo >&2 ' mkdir pic; \'
echo >&2 ' else true; fi'
echo >&2 ' touch stamp-picdir'
>depend.new
$(CXX) -M $(CXXINCLUDES) $(DEPEND_SOURCES) \
| sed -e 's|$(srcdir)/|$$(srcdir)/|g' \
- -e 's| [^ ]_G_config.h| $$(_G_CONFIG_H)|g \
- -e 's| /[^ ]*||g' \
+ -e 's| [^ ]*_G_config.h| $$(_G_CONFIG_H)|g' \
+ -e 's| /[^ ]*||g' -e 's| libc-lock\.h||' \
-e '/^[ ]*\\$$/d' -e 's/^[ ]*$$//' \
| sed -e 's|$$(srcdir)/[.][.]|$$(srcdir)/$$(MULTISRCTOP)..|g' \
-e 's|$$(srcdir)/\([^/]*[.]c\)|\1|' \