#
# ~ppr/src/lprsrv/Makefile
# Copyright 1995, 1996, 1997, Trinity College Computing Center.
# Written by David Chappell.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.  This software is provided "as is" without express or
# implied warranty.
#
# Last modified 12 March 1997.
#

#
# Make the Berkeley line printer protocol server
#

include ../include/global.mk

lprsrv$(DOTEXE): lprsrv.c ../include/lprsrv.h ../include/global_defines.h \
		../include/util_exits.h ../include/version.h \
		../libppr.$(LIBEXT)
	$(CC) $(CFLAGS) -o lprsrv$(DOTEXE) lprsrv.c ../libppr.$(LIBEXT) $(SOCKLIBS)
	$(STRIP) lprsrv$(DOTEXE)

$(HOMEDIR)/lib/lprsrv$(DOTEXE): lprsrv$(DOTEXE)
	$(RMF) $(HOMEDIR)/lib/lprsrv$(DOTEXE)
	$(CP) lprsrv$(DOTEXE) $(HOMEDIR)/lib/lprsrv$(DOTEXE)

install: $(HOMEDIR)/lib/lprsrv$(DOTEXE)

clean:
	rm -f *.$(OBJ) *.bak *~ *.bck lprsrv$(DOTEXE)

# end of file
