.SUFFIXES: .c .a86 .b

OBJ = ../../obj
LIB = ../../lib
INCLUDE = ../../include
OBJS = iprint.b format.b
SRCS = iprint.c format.c
COMS = 3iprint.com piprint.com iiprint.com siprint.com

LPR = impressify

VERSION = 20

3iprint.com: ${OBJS}
	cc86 -o 3iprint ${OBJS} -ltcp -ldomain -ludp -l3com -lnet -lip \
	-ltask -lh19
	setver86 3iprint.com ${VERSION}

iiprint.com: ${OBJS}
	cc86 -o iiprint ${OBJS} -ltcp -ldomain -ludp -linterlan -lnet -lip \
	-ltask -lh19
	setver86 iiprint.com ${VERSION}

piprint.com: ${OBJS}
	cc86 -o piprint ${OBJS} -ltcp -ldomain -ludp -lpronet -lnet -lip \
	-ltask -lh19
	setver86 piprint.com ${VERSION}

siprint.com: ${OBJS}
	cc86 -o siprint ${OBJS} -ltcp -ldomain -ludp -lserial -lnet -lip \
	-ltask -lh19
	setver86 siprint.com ${VERSION}

iprint.b: ${INCLUDE}/custom.h

lint:
	lint86 ${SRCS} -ltcp -ldomain -ludp -l3com -lnet -lip -ltask -lh19 -lc
	lint86 ${SRCS} -ltcp -ldomain -ludp -linterlan -lnet -lip -ltask -lh19 -lc
	lint86 ${SRCS} -ltcp -ldomain -ludp -lserial -lnet -lip -ltask -lh19 -lc
	lint86 ${SRCS} -ltcp -ldomain -ludp -lv2 -lnet -lip -ltask -lh19 -lc

all: ${COMS}

install: ${COMS}
	mv ${COMS} ${OBJ}

print: ${SRCS}
	${LPR} ${SRCS}

.c.b:
	cc86 -DDEBUG -c $*.c

.a86.b:
	a86 $*
