# Makefile : Builds the numtest3 application
#
# Usage:     NMAKE option (build numtest3)
#    or:     NMAKE clean  (erase all compiled files)
#
# option:    DEBUG=[0|1]  (DEBUG not defined is equivalent to DEBUG=1)
DEBUG=1 

CPPFLAGS=/AL /W3 /Zp /GA /GEs /G2
LINKFLAGS=/NOD /ONERROR:NOEXE

!if "$(DEBUG)"=="1"
CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
LINKFLAGS=$(LINKFLAGS) /COD
LIBS=lafxcwd libw llibcew commdlg shell
!else
CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
LINKFLAGS=$(LINKFLAGS)  
LIBS=lafxcw libw llibcew commdlg shell
!endif

numtest3.exe:     numtest3.obj numtest3.def numtest3.res numedit.obj
	link $(LINKFLAGS) numtest3 numedit, numtest3, NUL, $(LIBS),numtest3.def;
	rc /t numtest3.res

numtest3.res:  resource.h numtest3.ico inputdlg.dlg

numtest3.obj:  numtest3.h resource.h numedit.h

numedit.obj: numedit.h 

clean:
	-erase numtest3.exe
	-erase numtest3.res
	-erase numtest3.obj
	-erase numtedit.obj
