#
# %Z%%M% %I% %E% 1989 Agfa Compugraphic Division.
#
# Makefile (1.1, 88/12/07) -- makefile for program 'tape_dup'
#	
#	generated by mkmf (version 2.9, 87/03/19)
#

### MKMF:DEFINITIONS ###



# System makefile definitions for program makefiles

.SUFFIXES:	.ln

.c.ln:
		@lint -c $(LINTFLAGS) $<

#.c~.ln:
#		@echo $<
#		@$(GET) -G$*.c $(GFLAGS) $<
#		@lint -i $(LINTFLAGS) $*.c
#		@lint -c $(LINTFLAGS) $*.c
#		@rm -f $*.c

PRINTER=	lpr

PR_FLAGS=	-p -Pguten

TR_PRINTER=	$(PRINTER)

TR_FLAGS=	-t -Plpmim

# Libraries the program links to which are considered volatile

LIBS=

# Libraries considered static

EXTLIBS= -lbsd

LINTLIBS=

# P or G flag ( override on command line by invoking make PORG=-g )

PORG=	-g3 -D_BSD

AWK=	awk
CFLAGS= $(PORG) -std1
CPP=	/lib/cpp
CPPOPTS= 
#CPPOPTS= -P
LDFLAGS= -non_shared
LINTFLAGS= -h

# end of system makefile definitions



### MKMF:SOURCES ###


CFILES=		\
    		tape_dup.c	\
		tape_read.c	\
		tape_write.c	\
		fast_crc.c

### MKMF:OBJECTS ###

OBJS=		\
		tape_dup.o	\
		tape_read.o	\
		tape_write.o	\
		fast_crc.o

### MKMF:LINTOBJS ###

LINTOBJS=		\
		tape_dup.ln	\
		tape_read.ln	\
		tape_write.ln	\
		fast_crc.ln

### MKMF:TARGETS ###


PROGRAM=	tape_dup



# system targets for program makefile


$(PROGRAM):	$(OBJS) $(XOBJS) $(LIBS)
		@echo -n loading $(PROGRAM) ... 
		@$(CC) -o $(PROGRAM) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) $(EXTLIBS)
		@echo done

# delta uses local SCCS directory if it exists
# otherwise, it will use the Mosaic SCCS system

delta:	$(CFILES)
	@echo "$?:"
	-@if [ -d SCCS ] ; then 		\
	    sccs delget $? ;			\
	    touch delta ;			\
	 else					\
	    echo "comment (one word only[quoting will not help, see Lee Simpson for details])?:" ;			\
	    read comment ;			\
	    for file in $? ; do			\
		checkin -y $$comment $$file ;	\
	    done ;				\
	    touch checkin ;			\
	 fi

checkin:	$(CFILES)
	@echo "$?:"
	@echo "comment (one word only[quoting will not help, see Lee Simpson for details])?:"
	read comment ;				\
	for file in $? ; do			\
	    checkin -y $comment $file ;		\
	done
	touch checkin

print:;
		@$(PRINTER) $(PRINTFLAGS) $(CFILES)

prettyprint:;
		@vgrind $(CFILES) | $(TROFFPRINTER) $(TROFFPRINTERFLAGS)

lint:		$(LINTOBJS)
		lint $(LINTFLAGS) $(LINTOBJS) $(LINTLIBS)
		touch lint

clean:;
		@rm -f $(OBJS) $(PROGRAM)

tags:	$(CFILES) $(HDRS)
	time ctags -wt $(CFILES) $(HDRS)

# end of system targets for program makefile


depend: makedep
	echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
	echo '$$r makedep' >>eddep
	echo 'w' >>eddep
	cp Makefile Makefile.bak
	ex - Makefile < eddep
	rm eddep makedep makedep1 makedeperrs

makedep: ${CFILES}
	@cat /dev/null >makedep
	-(for i in ${CFILES} ; do \
		${CPP} -M ${CPPOPTS} $$i >> makedep; done) \
		2>makedeperrs
	sed \
		-e 's,^.*genassym\.o:,assym.s assym.L:,' \
		-e 's,^\(.*\)\.o:,\1.o \1.ln:,' makedep > makedep1
	${AWK} ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
		else { if (length(rec $$3) > 78) { print rec; rec = $$0; } \
		       else rec = rec " " $$3 } } \
	      END { print rec } ' makedep1 > makedep
	@cat makedeperrs
	@(if [ -s makedeperrs ]; then false; fi)


# DO NOT DELETE THIS LINE

tape_dup.o tape_dup.ln:	tape_dup.c ./tape_dup.h /usr/include/stdio.h
tape_dup.o tape_dup.ln:	/usr/include/standards.h /usr/include/sys/types.h
tape_dup.o tape_dup.ln:	/usr/include/standards.h
tape_dup.o tape_dup.ln:	/usr/include/mach/machine/vm_types.h
tape_dup.o tape_dup.ln:	/usr/include/sys/limits.h /usr/include/standards.h
tape_dup.o tape_dup.ln:	/usr/include/machine/machlimits.h
tape_dup.o tape_dup.ln:	/usr/include/sys/syslimits.h /usr/include/float.h
tape_dup.o tape_dup.ln:	/usr/include/standards.h
tape_dup.o tape_dup.ln:	/usr/include/machine/machtime.h /usr/include/errno.h
tape_dup.o tape_dup.ln:	/usr/include/standards.h /usr/include/sys/file.h
tape_dup.o tape_dup.ln:	/usr/include/sys/types.h /usr/include/sys/param.h
tape_dup.o tape_dup.ln:	/usr/include/sys/types.h /usr/include/sys/limits.h
tape_dup.o tape_dup.ln:	/usr/include/machine/machparam.h
tape_dup.o tape_dup.ln:	/usr/include/machine/endian.h
tape_dup.o tape_dup.ln:	/usr/include/machine/machlimits.h
tape_dup.o tape_dup.ln:	/usr/include/sys/signal.h /usr/include/standards.h
tape_dup.o tape_dup.ln:	/usr/include/sys/types.h /usr/include/sys/access.h
tape_dup.o tape_dup.ln:	/usr/include/standards.h /usr/include/sys/fcntl.h
tape_dup.o tape_dup.ln:	/usr/include/standards.h /usr/include/sys/types.h
tape_dup.o tape_dup.ln:	/usr/include/sys/types.h /usr/include/sys/ioctl.h
tape_dup.o tape_dup.ln:	/usr/include/sys/types.h /usr/include/sys/secdefines.h
tape_dup.o tape_dup.ln:	/usr/include/standards.h
tape_dup.o tape_dup.ln:	/usr/include/sys/ioctl_compat.h
tape_dup.o tape_dup.ln:	/usr/include/sys/ttychars.h
tape_dup.o tape_dup.ln:	/usr/include/sys/ttydefaults.h
tape_dup.o tape_dup.ln:	/usr/include/sys/ttydev.h
tape_dup.o tape_dup.ln:	/usr/include/io/common/devio.h /usr/include/sys/mtio.h
tape_dup.o tape_dup.ln:	/usr/include/sys/types.h /usr/include/signal.h
tape_read.o tape_read.ln:	tape_read.c ./tape_dup.h /usr/include/stdio.h
tape_read.o tape_read.ln:	/usr/include/standards.h /usr/include/sys/types.h
tape_read.o tape_read.ln:	/usr/include/standards.h
tape_read.o tape_read.ln:	/usr/include/mach/machine/vm_types.h
tape_read.o tape_read.ln:	/usr/include/sys/limits.h /usr/include/standards.h
tape_read.o tape_read.ln:	/usr/include/machine/machlimits.h
tape_read.o tape_read.ln:	/usr/include/sys/syslimits.h /usr/include/float.h
tape_read.o tape_read.ln:	/usr/include/standards.h
tape_read.o tape_read.ln:	/usr/include/machine/machtime.h /usr/include/errno.h
tape_read.o tape_read.ln:	/usr/include/standards.h /usr/include/sys/file.h
tape_read.o tape_read.ln:	/usr/include/sys/types.h /usr/include/sys/param.h
tape_read.o tape_read.ln:	/usr/include/sys/types.h /usr/include/sys/limits.h
tape_read.o tape_read.ln:	/usr/include/machine/machparam.h
tape_read.o tape_read.ln:	/usr/include/machine/endian.h
tape_read.o tape_read.ln:	/usr/include/machine/machlimits.h
tape_read.o tape_read.ln:	/usr/include/sys/signal.h /usr/include/standards.h
tape_read.o tape_read.ln:	/usr/include/sys/types.h /usr/include/sys/access.h
tape_read.o tape_read.ln:	/usr/include/standards.h /usr/include/sys/fcntl.h
tape_read.o tape_read.ln:	/usr/include/standards.h /usr/include/sys/types.h
tape_read.o tape_read.ln:	/usr/include/sys/types.h /usr/include/sys/ioctl.h
tape_read.o tape_read.ln:	/usr/include/sys/types.h
tape_read.o tape_read.ln:	/usr/include/sys/secdefines.h
tape_read.o tape_read.ln:	/usr/include/standards.h
tape_read.o tape_read.ln:	/usr/include/sys/ioctl_compat.h
tape_read.o tape_read.ln:	/usr/include/sys/ttychars.h
tape_read.o tape_read.ln:	/usr/include/sys/ttydefaults.h
tape_read.o tape_read.ln:	/usr/include/sys/ttydev.h
tape_read.o tape_read.ln:	/usr/include/io/common/devio.h
tape_read.o tape_read.ln:	/usr/include/sys/mtio.h /usr/include/sys/types.h
tape_write.o tape_write.ln:	tape_write.c ./tape_dup.h /usr/include/stdio.h
tape_write.o tape_write.ln:	/usr/include/standards.h /usr/include/sys/types.h
tape_write.o tape_write.ln:	/usr/include/standards.h
tape_write.o tape_write.ln:	/usr/include/mach/machine/vm_types.h
tape_write.o tape_write.ln:	/usr/include/sys/limits.h /usr/include/standards.h
tape_write.o tape_write.ln:	/usr/include/machine/machlimits.h
tape_write.o tape_write.ln:	/usr/include/sys/syslimits.h /usr/include/float.h
tape_write.o tape_write.ln:	/usr/include/standards.h
tape_write.o tape_write.ln:	/usr/include/machine/machtime.h
tape_write.o tape_write.ln:	/usr/include/errno.h /usr/include/standards.h
tape_write.o tape_write.ln:	/usr/include/sys/file.h /usr/include/sys/types.h
tape_write.o tape_write.ln:	/usr/include/sys/param.h /usr/include/sys/types.h
tape_write.o tape_write.ln:	/usr/include/sys/limits.h
tape_write.o tape_write.ln:	/usr/include/machine/machparam.h
tape_write.o tape_write.ln:	/usr/include/machine/endian.h
tape_write.o tape_write.ln:	/usr/include/machine/machlimits.h
tape_write.o tape_write.ln:	/usr/include/sys/signal.h /usr/include/standards.h
tape_write.o tape_write.ln:	/usr/include/sys/types.h /usr/include/sys/access.h
tape_write.o tape_write.ln:	/usr/include/standards.h /usr/include/sys/fcntl.h
tape_write.o tape_write.ln:	/usr/include/standards.h /usr/include/sys/types.h
tape_write.o tape_write.ln:	/usr/include/sys/types.h /usr/include/sys/ioctl.h
tape_write.o tape_write.ln:	/usr/include/sys/types.h
tape_write.o tape_write.ln:	/usr/include/sys/secdefines.h
tape_write.o tape_write.ln:	/usr/include/standards.h
tape_write.o tape_write.ln:	/usr/include/sys/ioctl_compat.h
tape_write.o tape_write.ln:	/usr/include/sys/ttychars.h
tape_write.o tape_write.ln:	/usr/include/sys/ttydefaults.h
tape_write.o tape_write.ln:	/usr/include/sys/ttydev.h
tape_write.o tape_write.ln:	/usr/include/io/common/devio.h
tape_write.o tape_write.ln:	/usr/include/sys/mtio.h /usr/include/sys/types.h
fast_crc.o fast_crc.ln:	fast_crc.c
