# Makefile.in generated automatically by automake 1.2 from Makefile.am

# Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.


SHELL = /bin/sh

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = ..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@

NORMAL_INSTALL = true
PRE_INSTALL = true
POST_INSTALL = true
NORMAL_UNINSTALL = true
PRE_UNINSTALL = true
POST_UNINSTALL = true
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
CPP = @CPP@
DATADIRNAME = @DATADIRNAME@
GENCAT = @GENCAT@
GMOFILES = @GMOFILES@
GMSGFMT = @GMSGFMT@
GT_NO = @GT_NO@
GT_YES = @GT_YES@
INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
INSTOBJEXT = @INSTOBJEXT@
INTLDEPS = @INTLDEPS@
INTLLIBS = @INTLLIBS@
INTLOBJS = @INTLOBJS@
LIBOBJS = @LIBOBJS@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
PACKAGE = @PACKAGE@
POFILES = @POFILES@
POSUB = @POSUB@
RANLIB = @RANLIB@
USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
l = @l@

localedir	= $(datadir)/locale
LDFLAGS		= -L../lib
LIBS		= @INTLLIBS@ -lrlpr
INCLUDES	= -I../intl -I../lib -DLOCALEDIR=\"$(localedir)\"

bin_PROGRAMS	= rlpr rlpq rlprm rlprd
rlpr_SOURCES	= rlpr.c component.c msg.c rlprrc.c util.c client.c
rlpq_SOURCES	= rlpq.c component.c msg.c rlprrc.c util.c client.c
rlprm_SOURCES	= rlprm.c component.c msg.c rlprrc.c util.c client.c
rlprd_SOURCES	= rlprd.c component.c msg.c util.c

EXTRA_DIST	= check-server.sh

noinst_HEADERS	= client.h component.h intl.h msg.h rfc1179.h rlpq.h rlpr.h \
		  rlprd.h rlprm.h rlprrc.h util.h

#
# Special directive for making links.  This is kind of a hack;
# it appears that Automake doesn't mind if we add stuff that we
# want to end up in the real Makefile in here as long as we
# avoid its variable names.
#
link_programs	= rlpr rlpq rlprm
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = 
PROGRAMS =  $(bin_PROGRAMS)


DEFS = @DEFS@ -I. -I$(srcdir) -I..
CPPFLAGS = @CPPFLAGS@
rlpr_OBJECTS =  rlpr.o component.o msg.o rlprrc.o util.o client.o
rlpr_LDADD = $(LDADD)
rlpr_LDFLAGS = 
rlpq_OBJECTS =  rlpq.o component.o msg.o rlprrc.o util.o client.o
rlpq_LDADD = $(LDADD)
rlpq_LDFLAGS = 
rlprm_OBJECTS =  rlprm.o component.o msg.o rlprrc.o util.o client.o
rlprm_LDADD = $(LDADD)
rlprm_LDFLAGS = 
rlprd_OBJECTS =  rlprd.o component.o msg.o util.o
rlprd_LDADD = $(LDADD)
rlprd_LDFLAGS = 
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
HEADERS =  $(noinst_HEADERS)

DIST_COMMON =  Makefile.am Makefile.in


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP = --best
SOURCES = $(rlpr_SOURCES) $(rlpq_SOURCES) $(rlprm_SOURCES) $(rlprd_SOURCES)
OBJECTS = $(rlpr_OBJECTS) $(rlpq_OBJECTS) $(rlprm_OBJECTS) $(rlprd_OBJECTS)

default: all

.SUFFIXES:
.SUFFIXES: .c .o
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
	cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status


mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
	test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(bindir)
	@list='$(bin_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo "  $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
	     $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; \
	done

uninstall-binPROGRAMS:
	$(NORMAL_UNINSTALL)
	list='$(bin_PROGRAMS)'; for p in $$list; do \
	  rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
	done

.c.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	rm -f *.o core

clean-compile:

distclean-compile:
	rm -f *.tab.c

maintainer-clean-compile:

rlpr: $(rlpr_OBJECTS) $(rlpr_DEPENDENCIES)
	@rm -f rlpr
	$(LINK) $(rlpr_LDFLAGS) $(rlpr_OBJECTS) $(rlpr_LDADD) $(LIBS)

rlpq: $(rlpq_OBJECTS) $(rlpq_DEPENDENCIES)
	@rm -f rlpq
	$(LINK) $(rlpq_LDFLAGS) $(rlpq_OBJECTS) $(rlpq_LDADD) $(LIBS)

rlprm: $(rlprm_OBJECTS) $(rlprm_DEPENDENCIES)
	@rm -f rlprm
	$(LINK) $(rlprm_LDFLAGS) $(rlprm_OBJECTS) $(rlprm_LDADD) $(LIBS)

rlprd: $(rlprd_OBJECTS) $(rlprd_DEPENDENCIES)
	@rm -f rlprd
	$(LINK) $(rlprd_LDFLAGS) $(rlprd_OBJECTS) $(rlprd_LDADD) $(LIBS)

tags: TAGS

ID: $(HEADERS) $(SOURCES)
	here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES)
	tags=; \
	here=`pwd`; \
	test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $(SOURCES) $(HEADERS) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	rm -f TAGS ID

maintainer-clean-tags:

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = src

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
client.o: client.c ../lib/lib.h ../config.h ../lib/getopt.h \
	../lib/xstrtol.h util.h rlprrc.h msg.h component.h client.h \
	rfc1179.h rlprd.h
component.o: component.c ../lib/getopt.h ../lib/lib.h ../config.h \
	component.h util.h msg.h
msg.o: msg.c ../lib/lib.h ../config.h intl.h component.h ../lib/getopt.h \
	msg.h
rlpq.o: rlpq.c ../lib/getopt.h ../lib/lib.h ../config.h intl.h \
	component.h msg.h util.h client.h rfc1179.h rlprrc.h rlpq.h
rlpr.o: rlpr.c ../config.h ../lib/getopt.h ../lib/lib.h intl.h \
	component.h msg.h util.h client.h rfc1179.h rlprrc.h rlpr.h
rlprd.o: rlprd.c ../lib/lib.h ../config.h intl.h util.h msg.h \
	../lib/getopt.h component.h rlprd.h rfc1179.h
rlprm.o: rlprm.c ../lib/getopt.h ../lib/lib.h ../config.h intl.h \
	component.h msg.h util.h client.h rfc1179.h rlprrc.h rlprm.h
rlprrc.o: rlprrc.c ../lib/lib.h ../config.h msg.h ../lib/getopt.h \
	component.h rlprrc.h intl.h
util.o: util.c ../config.h util.h msg.h ../lib/getopt.h component.h

info:
dvi:
check: all
	$(MAKE)
installcheck:
install-exec: install-binPROGRAMS
	@$(NORMAL_INSTALL)

install-data: 
	@$(NORMAL_INSTALL)

install: install-exec install-data all
	@:

uninstall: uninstall-binPROGRAMS

all: Makefile $(PROGRAMS) $(HEADERS)

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs:
	$(mkinstalldirs)  $(bindir)


mostlyclean-generic:
	test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:
	test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	rm -f Makefile $(DISTCLEANFILES)
	rm -f config.cache config.log stamp-h stamp-h[0-9]*
	test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
	test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean:  mostlyclean-binPROGRAMS mostlyclean-compile \
		mostlyclean-tags mostlyclean-generic

clean:  clean-binPROGRAMS clean-compile clean-tags clean-generic \
		mostlyclean

distclean:  distclean-binPROGRAMS distclean-compile distclean-tags \
		distclean-generic clean
	rm -f config.status

maintainer-clean:  maintainer-clean-binPROGRAMS maintainer-clean-compile \
		maintainer-clean-tags maintainer-clean-generic \
		distclean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

.PHONY: default mostlyclean-binPROGRAMS distclean-binPROGRAMS \
clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir info dvi installcheck \
install-exec install-data install uninstall all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean


install-setuid:	install
	@echo "setting rlpr, rlpq, rlprm and rlprd to be setuid root..."
	@chown root $(bindir)/rlpr
	@chmod 4755 $(bindir)/rlpr
	@chown root $(bindir)/rlpq
	@chmod 4755 $(bindir)/rlpq
	@chown root $(bindir)/rlprm
	@chmod 4755 $(bindir)/rlprm
	@chown root $(bindir)/rlprd
	@chmod 4755 $(bindir)/rlprd

install-proxy: install
	@echo "setting rlprd to be setuid root..."
	@chown root $(bindir)/rlprd
	@chmod 4755 $(bindir)/rlprd

bsdlinks:	$(link_programs)
	@echo "installing bsd symlinks..."
	-mv /usr/bin/lpr /usr/bin/lpr.bsd
	ln -s $(bindir)/rlpr /usr/bin/lpr
	-mv /usr/bin/lpq /usr/bin/lpq.bsd
	ln -s $(bindir)/rlpq /usr/bin/lpq
	-rm /usr/bin/lprm /usr/bin/lprm.bsd
	ln -s $(bindir)/rlprm /usr/bin/lprm

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
