#
# $Id: //devel/tools/main/winprinfo/makefile#1 $
#

OBJS	= winprinfo.obj
LIBS	= winspool.lib gdi32.lib

CFLAGS  =
CFLAGS += /Gz		# use __stdcall calling convention
CFLAGS += /GF		# enable read-only string pooling
CFLAGS += /W4		# set max warnings
CFLAGS += /WX		# warnings are errors
CFLAGS += /MD		# link with MSVCRT DLL
CFLAGS += /YXwindows.h	# precompile up to windows.h

CLEAN   = *.obj *.pch winprinfo.exe

all : winprinfo.exe

winprinfo.exe : $(OBJS)
	link /nologo /out:$@ $(OBJS) $(LIBS)

winprinfo.obj : makefile

%.obj : %.cpp
	$(strip cl /nologo $(CFLAGS) /c $*.cpp)

clobber : clean
clean :
	rm -f $(CLEAN)

# ------------------------------------------------------------------------
# PC-LINT
#
# We use the outstanding PC-Lint tool from Gimpel Software to make our
# code cleaner, and this is where we do that processing. You don't care
# about this if you've not purchased the product.
#
ifdef PCLINTDIR

CLEAN += lint.out

lint :
	$(strip lint-nt local.lnt $(OBJS:.$O=.cpp) > lint.out)

endif

# "webupdate.mk" includes the code that updates my website with
# this source, and I don't distribute it. The "-" in front is
# used by GNU make to indicate that the file need not exist.

-include webupdate.mk
