# Generated automatically from Makefile.in by configure.
# 
#   Newtl!  Newton/Linux Development Environment!
#   Copyright (C) 1995-1997  A. E. Hall
# 
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
# 
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
# 
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#### system configuration section ####

srcdir     = .
VPATH      = .:RCS

prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib

INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}

CXX = c++
CXXFLAGS = -g -O
LDFLAGS = 

#### end of system configuration section ####

SHELL = /bin/sh

SUBDIRS = Newton newtl HelloWorld

# A file that should be up to date before you make a distribution.
DISTDEP = Makefile
DISTFILES = \
            COPYING \
            Makefile.in \
            configure \
            configure.in \
            install-sh \
            mkinstalldirs \
            Newton/COPYING.LIB \
            Newton/Inbox.C \
            Newton/Makefile.in \
            Newton/NPP.C \
            Newton/Newton.C \
            Newton/Newton.H \
            Newton/Outbox.C \
            Newton/Package.C \
            Newton/Read.C \
            Newton/Write.C \
            newtl/.gdbinit \
            newtl/COPYING \
            newtl/Makefile.in \
            newtl/getopt.c \
            newtl/getopt.h \
            newtl/getopt1.c \
            newtl/newtl.C \
            newtl/newtl.H \
            newtl.lsm \
            HelloWorld/HelloWorld.nwt \
            HelloWorld/Makefile.in \
            HelloWorld/button.nwt \
            HelloWorld/float.nwt \
            HelloWorld/main.nwt \
            xnewtl

MDEFINES = CXX='$(CXX)' CXXFLAGS='$(CXXFLAGS)' LDFLAGS='$(LDFLAGS)'

all clean mostlyclean distclean maintainer-clean::
	for dir in $(SUBDIRS); do \
	  echo making $@ in $$dir ; \
	  (cd $$dir && $(MAKE) $(MDEFINES) $@) ; \
	done

distclean::
	rm -f Makefile config.status config.cache config.log

install: all
	$(srcdir)/mkinstalldirs $(bindir) $(libdir)
	$(INSTALL_PROGRAM) newtl/newtl $(bindir)
	$(INSTALL_DATA) Newton/libNewton.a $(libdir)
	$(INSTALL_PROGRAM) $(bindir)

uninstall:
	rm -f $(bindir)/newtl $(libdir)/libNewton.a

# Don't depend on DISTFILES because there's no rule for "standards.info*".
dist: $(DISTDEP)
	d=newtl-`grep '#define NewtlVERSION' newtl/newtl.H | cut -d\\" -f2`; \
	rm -fr $$d; \
	mkdir $$d $$d/Newton $$d/newtl $$d/HelloWorld ; \
	for f in $(DISTFILES); do \
	  ln $$f $$d/$$f \
	  || { echo copying $$f instead; cp -p $$f $$d/$$f;}; \
	done; \
	chmod -R a+rX $$d; \
	tar -chf $$d.tar $$d; \
	gzip $$d.tar; \
	rm -fr $$d

