#
# Premakefile template by John E Elsbree, MIT Project Athena, 22 November 1987
#
# Component name:  zprstat
#

#
# Subdirectories that have Makefiles of their own:
#

SUBDIR	=	

#
# Names of scripts, binaries, library files, and manual pages:
#

SCRIPT	=	
BINARY	=	zprstat
LIBFILE	=	all.printers
MANPAGE	=	zprstat.1

#
# Subdirectory of lib where library files should be installed:
#

LIBDIR	=	zprstat

#
# Dependencies and instructions for making binary files:
#

CFLAGS=	-g

DAEMON=		zprstatd
DAEMON_OBJS=	zprstatd.o Prntr.o Pstat.o Notice.o Lpq.o substr.o
DAEMON_LIBS=	-lhesiod -lzephyr -lkrb -ldes -lcom_err

CLIENT=		zprstat
CLIENT_OBJS=	zprstat.o Prntr.o Pstat.o Notice.o Window.o substr.o
CLIENT_LIBS=	-lhesiod -lzephyr -lkrb -ldes -lcom_err -lXaw -lXt -lX11


all: $(DAEMON) $(CLIENT)

$(DAEMON):	$(DAEMON_OBJS)
	cc $(LDFLAGS) -o $(DAEMON) $(DAEMON_OBJS) $(DAEMON_LIBS)

$(CLIENT):	$(CLIENT_OBJS)
	cc $(LDFLAGS) -o $(CLIENT) $(CLIENT_OBJS) $(CLIENT_LIBS)


zprstatd.o:	common.h zprstat.h Prntr.h Pstat.h Lpq.h Notice.h
zprstat.o:	common.h zprstat.h Prntr.h Pstat.h Lpq.h Notice.h Window.h
Prntr.o:	common.h zprstat.h Prntr.h Pstat.h substr.h
Pstat.o:	Pstat.h
Notice.o:	common.h zprstat.h Notice.h
Lpq.o:		common.h zprstat.h Lpq.h Prntr.h Pstat.h substr.h
Window.o:	common.h zprstat.h Window.h Prntr.h Pstat.h
substr.o:	

