# Makefile for lpr, lpq, lprm
# $Id: makefile,v 1.2 1999/10/24 05:45:30 angus Exp $

CFLAGS = -DWIN32 # -Zi
LNFLAGS = # -debug:full

SYSLIBS = advapi32.lib wsock32.lib

all: lpr.exe lpq.exe lprm.exe

lpr.exe: lpr.obj common.obj
	link $(LNFLAGS) -out:$@ lpr.obj common.obj $(SYSLIBS)

lpr.obj: lpr.c common.h

lpq.exe: lpq.obj common.obj
	link $(LNFLAGS) -out:$@ lpq.obj common.obj $(SYSLIBS)

lpq.obj: lpq.c common.h

lprm.exe: lprm.obj common.obj
	link $(LNFLAGS) -out:$@ lprm.obj common.obj $(SYSLIBS)

lprm.obj: lprm.c common.h

common.obj: common.c common.h

clean:
	del /q *.obj *.opt *.pdb *.ilk

realclean:
	del /q *.exe

zip: lpr.exe lprm.exe lpq.exe clean
	cd .. && zipnt -9 win32lpr.zip lpr\*.*

#
# $Log: makefile,v $
# Revision 1.2  1999/10/24 05:45:30  angus
#
# Add support for -Z options
# Allow printer@host syntax for all programs
# Use SO_DONTLINGER to enable socket re-use
#
# Revision 1.1.1.1  1999/07/02 06:21:11  angus
# Initial CVS import
#
