# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
srcdir = .
-
+srcroot = $(srcdir)/..
prefix = /usr/local
+program_transform_name =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
SHELL = /bin/sh
-INSTALL = install -c
+INSTALL = $${srcroot}/../install.sh -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
+INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
+INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
+
AR = ar
AR_FLAGS = rc
MAKEINFO = makeinfo
RANLIB = ranlib
+MAKEOVERRIDES=
+
INCDIR = $(srcdir)/../include
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
DEP = mkdep
all: $(ALL)
clean: $(CLEAN)
- rm -f endian e.h endian.h
install: $(DO_INSTALL)
+mostlyclean: clean
+
+distclean realclean: clean
+ rm -f Makefile config.status
+
info:
install-info:
dvi:
-### build endian.h via a temporary so that interrupted builds will not
-### leave an incomplete endian.h lying around.
-endian.h: endian
- ./endian > e.h
- mv -f e.h endian.h
+###
+###
-endian: $(srcdir)/endian.c
- $(CC) $(CFLAGS) -o endian $(srcdir)/endian.c
+.PHONY: check installcheck
+check:
+installcheck:
### none
### z8k
-all-z8k: endian.h force
- if [ -f ./z8k/Makefile ] ; then \
+all-z8k: force
+ @if [ -f ./z8k/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
else \
fi
install-z8k: force
- if [ -f ./z8k/Makefile ] ; then \
+ @if [ -f ./z8k/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot; \
( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
else \
true ; \
fi
clean-z8k: force
- if [ -f ./z8k/Makefile ] ; then \
+ @if [ -f ./z8k/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
else \
### h8300
-all-h8300: endian.h force
- if [ -f ./h8300/Makefile ] ; then \
+all-h8300: force
+ @if [ -f ./h8300/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
else \
fi
install-h8300: force
- if [ -f ./h8300/Makefile ] ; then \
+ @if [ -f ./h8300/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot; \
( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
else \
true ; \
fi
clean-h8300: force
- if [ -f ./h8300/Makefile ] ; then \
+ @if [ -f ./h8300/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
else \
### h8500
-all-h8500: endian.h force
- if [ -f ./h8500/Makefile ] ; then \
+all-h8500: force
+ @if [ -f ./h8500/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
else \
fi
install-h8500: force
- if [ -f ./h8500/Makefile ] ; then \
+ @if [ -f ./h8500/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot; \
( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
else \
true ; \
fi
clean-h8500: force
- if [ -f ./h8500/Makefile ] ; then \
+ @if [ -f ./h8500/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
else \
### sh
-all-sh: endian.h force
- if [ -f ./sh/Makefile ] ; then \
+all-sh: force
+ @if [ -f ./sh/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
else \
fi
install-sh: force
- if [ -f ./sh/Makefile ] ; then \
+ @if [ -f ./sh/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
else \
fi
clean-sh: force
- if [ -f ./sh/Makefile ] ; then \
+ @if [ -f ./sh/Makefile ] ; then \
rootme=`pwd` ; export rootme ; \
( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
else \