# Generated automatically from Makefile.in by configure.
# Makefile for GNU dc.	-*- Indented-Text -*-
# Copyright (C) 1993 Free Software Foundation, Inc.

# 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, 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.

#### Start of system configuration section. ####

srcdir = .
VPATH = .

CC = cc

INSTALL = /u1/gnu/bin/install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644

DEFS = 
LIBS = 

CFLAGS = -O
LDFLAGS = -s

prefix = /u1/gnu
exec_prefix = ${prefix}

bindir = $(exec_prefix)/bin
datadir = $(prefix)/lib
libdir = $(prefix)/lib
infodir = $(prefix)/info

# Where to install the manual pages.
mandir = $(prefix)/man/man1
# Extension (not including `.') for the installed manual page filenames.
manext = 1

#### End of system configuration section. ####

SHELL = /bin/sh

LOADLIBES = $(LIBS) -lm

DISTFILES = COPYING ChangeLog INSTALL Makefile.in NEWS README configure \
            configure.in dc.c dc.info dc.texinfo decimal.c decimal.h \
            texinfo.tex

DISTNAME = dc-0.2

all: dc

.c.o:
	$(CC) -c -I. -I$(srcdir) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<

### targets required by GNU Coding standards ###

Makefile: Makefile.in config.status
	./config.status

config.status: configure
	$(srcdir)/configure --srcdir=$(srcdir) --no-create

configure: configure.in
	cd $(srcdir); autoconf

TAGS:
	cd $(srcdir); etags *.c *.h

clean:
	rm -f *.o core a.out dc

mostlyclean: clean

distclean: clean
	rm -f Makefile config.status

realclean: distclean
	rm -f TAGS dc.info* configure

dist: $(DISTFILES)
	rm -rf $(DISTNAME)
	mkdir $(DISTNAME)
	ln $(DISTFILES) $(DISTNAME)
	tar --gzip -chf $(DISTNAME).tar.z $(DISTNAME)
	rm -rf $(DISTNAME)

install: all
	$(INSTALL_PROGRAM) dc $(bindir)/dc
	-if test -f dc.info ; then d=.; else d=$(srcdir) ; fi; \
	 $(INSTALL) $${d}/dc.info $(infodir)/dc.info

uninstall: force
	rm -f $(bindir)/dc
	rm -f $(infodir)/dc.info

### Actual dc-specific targets ###

dc.o: dc.c decimal.h
decimal.o: decimal.c decimal.h

dc: dc.o decimal.o
	$(CC) $(LDFLAGS) -o dc dc.o decimal.o $(LOADLIBES)

dc.info: dc.texinfo
	makeinfo -I$(srcdir) --no-split dc.texinfo

dc.dvi: dc.texinfo
	texi2dvi $(srcdir)/dc.texinfo

# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT:
