#
# Makefile for directory with subdirs to build.
-# Copyright (C) 1990, 1991, 1992 Free Software Foundation
+# Copyright (C) 1990-1993 Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
fi; \
fi`
-GCC_FOR_TARGET = ` \
- if [ -f $${rootme}/gcc/Makefile ] ; then \
- echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
- else \
- if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
- echo $(CC); \
- else \
- t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
- fi; \
- fi`
-
$(start-sanitize-chill)
CHILL_FOR_TARGET = ` \
if [ -f $${rootme}/gcc/Makefile ] ; then \
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
fi; \
fi`
+
$(end-sanitize-chill)
CXX_FOR_TARGET = ` \
echo ; \
fi`
+PRMS = install-prms
#### host and target specific makefile fragments come in here.
###
"CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
"CXXFLAGS=$(CXXFLAGS)" \
"CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
- "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
+ 'GCC_FOR_TARGET=$$(CC_FOR_TARGET)' \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"LOADLIBES=$(LOADLIBES)" \
"MAKEINFO=$(MAKEINFO)" \
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
+ "PRMS=$(PRMS)" \
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
"XTRAFLAGS_FOR_TARGET=$(XTRAFLAGS)" \
"exec_prefix=$(exec_prefix)" \
# The first rule in the file had better be this one. Don't put any above it.
all: $(ALL)
-.PHONY: all check dvi info install-info install-info-dirs
-.PHONY: do-info do-check do-dvi do-install-info
+.PHONY: all check installcheck dvi info install-info install-info-dirs
+.PHONY: do-info do-check do-installcheck do-dvi do-install-info
.PHONY: do-clean do-mostlyclean do-distclean do-realclean
.NOEXPORT:
+MAKEOVERRIDES=
+
+$(start-sanitize-chill)
+## This is ugly, but I don't want GNU make to put these variables in
+## the environment. Older makes will see this as a set of targets
+## with no dependencies and no actions.
+unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
+$(end-sanitize-chill)
# Do a target for all the subdirectories. A ``make do-X'' will do a
-# ``make X'' in all subdirectories (because, in general, X depends on
-# fdo-X, a ``make X'' will also do this, but it may do additional work
-# as well).
+# ``make X'' in all subdirectories (because, in general, there is a
+# dependency (below) of X upon do-X, a ``make X'' will also do this,
+# but it may do additional work as well).
# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
# because it is so large that it can easily overflow the command line
# length limit on some systems.
-do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean:
+do-info do-check do-installcheck do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean:
@target=`echo $@ | sed -e 's/^do-//'`; \
rootme=`pwd`; export rootme; \
srcroot=`cd $(srcdir); pwd`; export srcroot; \
for i in $(SUBDIRS); do \
- if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ]; then \
+ if [ -f ./$$i/Makefile ]; then \
case $$i in \
$(TARGET_LIBS) ) \
for flag in $(EXTRA_TARGET_FLAGS); do \
info: do-info
check: do-check
+installcheck: do-installcheck
dvi: do-dvi
install-info: install-info-dirs do-install-info dir.info
- $(INSTALL_DATA) dir.info $(infodir)/dir.info
+ if [ -f dir.info ] ; then \
+ $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
+ else true ; fi
do-install-info: install-info-dirs
$(start-sanitize-chill) \
all-chillrt \
$(end-sanitize-chill) \
- all-gprof all-send_pr all-libm all-deja-gnu \
+ all-gprof all-prms all-send-pr all-libm all-dejagnu \
all-fileutils all-find all-gawk all-sed all-shellutils \
all-textutils all-time all-wdiff all-uudecode \
all-hello all-tar all-gzip all-indent all-recode
$(start-sanitize-chill) \
all-chillrt \
$(end-sanitize-chill) \
- all-deja-gnu
+ all-dejagnu
.PHONY: clean distclean mostlyclean realclean local-clean local-distclean
install-chillrt \
$(end-sanitize-chill) \
install-cvs \
- install-deja-gnu \
+ install-dejagnu \
install-diff \
install-emacs \
install-etc \
install-newlib \
install-opcodes \
install-patch \
+ install-prms \
install-rcs \
install-readline \
- install-recode \
+ install-recode \
install-sed \
- install-send_pr \
+ install-send-pr \
install-shellutils \
install-sim \
install-tar \
$(start-sanitize-chill) \
install-chillrt \
$(end-sanitize-chill) \
- install-gcc install-etc install-deja-gnu
+ install-gcc install-etc install-dejagnu
### gzip
all-gzip: all-libiberty
fi
-### deja-gnu
-all-deja-gnu: force
- @if [ -f ./deja-gnu/Makefile ] ; then \
+### dejagnu
+all-dejagnu: force
+ @if [ -f ./dejagnu/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ (cd ./dejagnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
else \
true ; \
fi
-install-deja-gnu: force
- @if [ -f ./deja-gnu/Makefile ] ; then \
+install-dejagnu: force
+ @if [ -f ./dejagnu/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ (cd ./dejagnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
else \
true ; \
fi
else \
true ; \
fi
+
### end-sanitize-chill
### gprof
true ; \
fi
-### send_pr
-all-send_pr: force
- @if [ -f ./send_pr/Makefile ] ; then \
+### prms
+all-prms: force
+ @if [ -f ./prms/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd ./send_pr; \
+ (cd ./prms; \
$(MAKE) $(FLAGS_TO_PASS) all) ; \
else \
true ; \
fi
-install-send_pr: force
- @if [ -f ./send_pr/Makefile ] ; then \
+install-prms: force
+ @if [ -f ./prms/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd ./send_pr; \
+ (cd ./prms; \
+ $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+### send-pr
+all-send-pr: force
+ @if [ -f ./send-pr/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./send-pr; \
+ $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-send-pr: force
+ @if [ -f ./send-pr/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./send-pr; \
$(MAKE) $(FLAGS_TO_PASS) install) ; \
else \
true ; \
true ; \
fi
+### tclX
+all-tclX: all-tcl all-tk
+ @if [ -f ./tclX/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot ; \
+ (cd ./tclX; \
+ $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-tclX: force
+ @if [ -f ./tclX/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot ; \
+ (cd ./tclX; \
+ $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+
### expect
all-expect: all-tcl
@if [ -f ./expect/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
srcroot=`cd $(srcdir); pwd`; export srcroot ; \
(cd ./expect; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
else \
true ; \
fi
rootme=`pwd` ; export rootme ; \
srcroot=`cd $(srcdir); pwd`; export srcroot ; \
(cd ./expect; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
else \
true ; \
fi
-if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
dir.info: do-install-info
- $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
- mv -f dir.info.new dir.info
+ if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
+ $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
+ mv -f dir.info.new dir.info ; \
+ else true ; \
+ fi
dist:
@echo "Building a full distribution of this tree isn't done"
config.guess config.sub config move-if-change
ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
configure.texi
-GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
+GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
setup-dirs: force
./configure sun4
- make clean
+ $(MAKE) clean
./configure -rm sun4
chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`