SHELL = /bin/sh
-INSTALL = $$s/install-sh -c
+INSTALL = $(SHELL) $$s/install-sh -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
HOST_PREFIX =
HOST_PREFIX_1 = loser-
-# We don't specify -g -O because many compilers don't support -g -O,
-# and/or -O is broken in and of itself.
+# These flag values are normally overridden by the configure script.
CFLAGS = -g
+CXXFLAGS = -g -O2
+
LIBCFLAGS = $(CFLAGS)
CFLAGS_FOR_TARGET = $(CFLAGS)
LDFLAGS_FOR_TARGET =
CXX = c++
# Use -O2 to stress test the compiler.
-CXXFLAGS = -g -O2
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
DLLTOOL = dlltool
NM = nm
+
+LD = ld
+
# Not plain GZIP, since gzip looks there for extra command-line options.
GZIPPROG = gzip
'CC=$(CC)' \
'CXX=$(CXX)' \
'DLLTOOL=$(DLLTOOL)' \
+ 'LD=$(LD)' \
'NM=$(NM)' \
'RANLIB=$(RANLIB)'
ALL_MODULES = \
all-apache \
all-autoconf \
+ all-automake \
all-bash \
all-bfd \
all-binutils \
CROSS_CHECK_MODULES = \
check-apache \
check-autoconf \
+ check-automake \
check-bash \
check-bfd \
check-binutils \
# This is a list of the install targets for all of the modules which are
# compiled using $(FLAGS_TO_PASS).
+# We put install-opcodes before install-binutils because the installed
+# binutils might be on PATH, and they might need the shared opcodes
+# library.
INSTALL_MODULES = \
install-apache \
install-autoconf \
+ install-automake \
install-bash \
install-bfd \
+ install-opcodes \
install-binutils \
install-byacc \
install-cvs \
install-m4 \
install-make \
install-mmalloc \
- install-opcodes \
install-patch \
install-perl \
install-prms \
CLEAN_MODULES = \
clean-apache \
clean-autoconf \
+ clean-automake \
clean-bash \
clean-bfd \
clean-binutils \
done; \
;; \
esac ; \
- export AR AS CC CXX NM RANLIB DLLTOOL; \
+ export AR AS CC CXX LD NM RANLIB DLLTOOL; \
if (cd ./$$i; \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
- "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" \
$${target}); \
for flag in $(EXTRA_TARGET_FLAGS); do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
done; \
- export AR AS CC CXX NM RANLIB DLLTOOL; \
+ export AR AS CC CXX LD NM RANLIB DLLTOOL; \
if (cd $(TARGET_SUBDIR)/$$i; \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
- "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" \
$${target}); \
# This is a list of inter-dependencies among modules.
all-apache:
all-autoconf: all-m4
+all-automake:
all-bash:
all-bfd:
all-binutils: all-libiberty all-opcodes all-bfd all-flex all-byacc
# When you use `make setup-dirs' or `make taz' you should always redefine
# this macro.
SUPPORT_FILES = list-of-support-files-for-tool-in-question
-# Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
-DISTBISONFILES= binutils/Makefile.in gas/Makefile.in gdb/Makefile.in ld/Makefile.in
.PHONY: taz
taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
- # Make sure "diststuff" files get built properly.
- for f in $(DISTBISONFILES) ; do \
- if [ -r $$f ]; then \
- sed '/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp ; \
- mv -f tmp $$f ; \
- else true; fi ; \
- done
# Take out texinfo from a few places; make simple BISON=bison line.
sed -e '/^all\.normal: /s/\all-texinfo //' \
-e '/^ install-texinfo /d' \
- -e '/^BISON = /,/^$$/d' \
- -e '/^# BISON:/s/.*/BISON = bison -y/' \
+ -e '/^BISON = `if/,/^$$/d' \
+ -e '/^# BISON:/s/.*/BISON = $(DEFAULT_YACC)/' \
<Makefile.in >tmp
mv -f tmp Makefile.in
#