# Makefile : Builds the numtest2 application
#
# Usage:     NMAKE option (build numtest2)
#    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 shell commdlg
!else
CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
LINKFLAGS=$(LINKFLAGS)  
LIBS=lafxcw libw llibcew shell commdlg
!endif

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

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

numtest2.obj:  numtest2.h resource.h numedit.h

numedit.obj: numedit.h

clean:
	-erase numtest2.exe
	-erase numtest2.res
	-erase numtest2.obj
	-erase numedit.obj
