# Makefile for mdump, a utility for putting multiple dump files onto a
# single tape volume.
#
# Written by Paul Pomes, University of Illinois, Computing Services Office
# Copyright 1985 by Paul Pomes and University of Illinois Board of Trustees
#
# This program may be freely reproduced and distributed provided the 
# copyright above is included in all copies.  It may not be included
# in any software product or distribution sold for profit without the
# permission of the author.
#
# UUCP:		{ihnp4,pur-ee,convex}!uiucdcs!uiucuxc!paul
# ARPANET:	paul%uiucuxc@uiuc.arpa
# CSNET:	paul%uiucuxc@uiuc.csnet
# US Mail:	Univ of Illinois, CSO, 1304 W Springfield Ave, Urbana, IL  61801
#
# $Header: Makefile,v 1.1 85/07/02 13:47:16 root Exp $

CFLAGS=	-O
LDFLAGS=

all:	mdump st

mdump:	mdump.o dumptab.o
	cc mdump.o dumptab.o -o mdump ${LDFLAGS}

st:	st.o dumptab.o
	cc st.o dumptab.o -o st

clean:
	rm -f *.o mdump st make.log lint.out a.out

lint:
	lint -habcx mdump.c dumptab.c
	lint -habcx st.c dumptab.c

install: mdump st
	install -s mdump /etc
	install -s st /etc
	cp mdump.8 /usr/man/manl/mdump.l
	cp dumptab.5 /usr/man/manl/dumptab.l
	cp getdtent.3 /usr/man/manl/getdtent.l
	cp st.8 /usr/man/manl/st.l

dumptab.o:	dumptab.c dumptab.h
	cc ${CFLAGS} -c dumptab.c

mdump.o:	mdump.c dumptab.h
	cc ${CFLAGS} -c mdump.c

st.o:	st.c dumptab.h
	cc ${CFLAGS} -c st.c
