# Public Domain LPD Copyright 1988 Patrick Powell
# Filters:
# Filters consist of a front end program (main.c), which sets up
# arguments and then calls filter(stopstr).  If filter hits the
# "stopstr" in its input,  is should suspend itself.  On resumption,
# it should take whatever actions are needed (ioctl call, etc.)
# to reset the printer to a known state.
#

CFLAGS=	-g
LIB=	/usr/local/new/lib

PRINTER=lpf

VARIAN=	vpf vdmp


ALL= ${PRINTER} ${VARIAN}

all:	${ALL}

lpf:	main.o lpf.c
	${CC} -o lpf -DPRINTRONIX ${CFLAGS} main.o lpf.c


vpf:	main.o lpf.c
	${CC} -o vpf -DVERSATEC ${CFLAGS} main.o lpf.c

vdmp:	main.o vdmp.c
	${CC} -o vdmp ${CFLAGS} main.o vdmp.c

install: ${ALL}
	-for i in ${ALL}; \
	do \
		install -c $$i ${DESTDIR}${LIB}; \
	done;

clean:
	rm -f ${ALL} *.o

print:
	@pr Makefile
	@${CXREF} *.c | pr -h XREF
	@pr *.h *.c
