.SUFFIXES: .c .a86 .b

LIB = ../../lib
INCLUDE = ../../include
OBJS = res_name.b dm_name.b
SRCS = res_name.c dm_name.c
ASMS =
INCS = domain.h

LPR = impressify

domain: ${OBJS}
	ar r ${LIB}/libdomain.a ${OBJS}
	ranlib ${LIB}/libdomain.a

###########################################################################
#	DO NOT compile dm_name.c with DEBUG defined unless you
#	want some programs (telnet) to be too big for DOS to load.
#	if you need to debug dm_name.c, you'll have to change this
#	and use a small stub program to debug it.
###########################################################################
dm_name.b: dm_name.c
	cc86 -c $*.c

${OBJS}: domain.h ${INCLUDE}/timer.h ${INCLUDE}/task.h

lintlib:
	lint86 -Cdomain ${SRCS}
	mv llib-ldomain.ln ${LIB}

print: ${SRCS} ${ASMS} ${INCS}
	${LPR} ${SRCS} ${ASMS} ${INCS}

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

.a86.b:
	a86 $*
