# $Copyright: $
# Copyright (c) 1999 by Steve Baker
# All Rights reserved
#
# This software is provided as is without any express or implied
# warranties, including, without limitation, the implied warranties
# of merchant-ability and fitness for a particular purpose.

CC=gcc
#CFLAGS=-O2 -fomit-frame-pointer #-m486
CFLAGS=-ggdb -Wall --strict-prototypes
#LDFLAGS=-s

QUOT_DEST=quot
BINDIR=/usr/local/bin
MAN=quot.1
MANDIR=/usr/man/man1
VERSION=0.7

all:	quot

quot:	quot.o
	$(CC) $(LDFLAGS) -o $(QUOT_DEST) quot.o

quot.o:	quot.c

clean:
	if [ -e $(QUOT_DEST) ]; then rm $(QUOT_DEST); fi
	if [ -e quot.o ]; then rm *.o; fi

install:
	install -d $(BINDIR) $(MANDIR)
	if [ -e $(QUOT_DEST) ]; then \
		install -s $(QUOT_DEST) $(BINDIR)/$(QUOT)DEST); \
	fi

tarball: clean
	cd ..; \
	tar cvzf quot-$(VERSION).tgz quot
