# Makefile : Builds the hello application
#
# Usage:     NMAKE option (build hello)
#    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

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

numedit.obj:  numedit.cpp

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