#
# Project Athena User Consulting Group
# Copyright (C) 1987 Massachusetts Institute of Technology
#

# NOTE: This Makefile was generated by premake.  Do not edit it directly!
#	Edit the Premakefile and then re-run premake.

#
# 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 -I/usr/athena/include

DAEMON=		zprstatd
DAEMON_OBJS=	zprstatd.o Prntr.o Pstat.o Notice.o Lpq.o substr.o
DAEMON_LIBS=	-L/usr/athena/lib -lhesiod -lzephyr -lkrb -ldes -lcom_err

CLIENT=		zprstat
CLIENT_OBJS=	zprstat.o Prntr.o Pstat.o Notice.o Window.o substr.o
CLIENT_LIBS=	-L/usr/athena/lib -lhesiod -lzephyr -lkrb -ldes -lcom_err -lXaw -lXmu -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:	


## Nothing below this line should need to be changed! #########################

#
# Standard commands:
#

RM	=	/bin/rm
MKDIR	=	/bin/mkdir
LN	=	/bin/ln
INSTALL	=	/usr/bin/install
MACHTYPE=	/bin/athena/machtype
SED	=	/bin/sed
PREMAKE	=	/mit/consult/bin/premake

#
# Directory names:
#

DESTDIR	=
TOPDIR	=	${DESTDIR}/mit/consult
BIN	=	${TOPDIR}/bin
VAXBIN	=	${TOPDIR}/vaxbin
RTBIN	=	${TOPDIR}/rtbin
LIB	=	${TOPDIR}/lib
MAN	=	${TOPDIR}/man

#
# Standard make targets (clean, all, install, makefile):
#

clean:	clean_SUBDIR clean_SCRIPT clean_BINARY clean_LIBDIR \
	clean_LIBFILE clean_MANPAGE
	${RM} -f *~

all:	all_SUBDIR all_SCRIPT all_BINARY all_LIBDIR \
	all_LIBFILE all_MANPAGE

install: install_SUBDIR install_SCRIPT install_BINARY install_LIBDIR \
	install_LIBFILE install_MANPAGE

makefile: makefile_SUBDIR
	${PREMAKE}

clean_SUBDIR:
all_SUBDIR:
install_SUBDIR:
makefile_SUBDIR:

clean_SCRIPT:
all_SCRIPT:
install_SCRIPT:
makefile_SCRIPT:

clean_BINARY:
	${RM} -f ${BINARY} *.o core

all_BINARY: ${BINARY}

install_BINARY:
	bindir=${TOPDIR}/`${MACHTYPE}`bin; \
	for i in ${BINARY}; do \
	    ${INSTALL} -c -m 755 $$i $${bindir}/$$i; \
	done

clean_LIBDIR:

all_LIBDIR:

install_LIBDIR:
	${RM} -rf ${LIB}/${LIBDIR}; ${MKDIR} ${LIB}/${LIBDIR};

clean_LIBFILE:

all_LIBFILE:

install_LIBFILE:
	for i in ${LIBFILE}; do \
	    ${INSTALL} -c -m 644 $$i ${LIB}/${LIBDIR}/$$i; \
	done

clean_MANPAGE:

all_MANPAGE:

install_MANPAGE:
	for i in ${MANPAGE}; do \
	    (section=`echo $$i | ${SED} 's/[A-Za-z0-9_\-]*\.//'`; \
	    ${INSTALL} -c -m 644 $$i ${MAN}/man$${section}/$$i); \
	done

