# Makefile : Builds the dynatest.exe
#
# Usage:     NMAKE option 
#
# option:    DEBUG=[0|1]  (DEBUG not defined is equivalent to DEBUG=1)
DEBUG=1 

CPPFLAGS=  /AL /W3 /Zp /GA /GEs /G2 /Gt65500 /Gx
CPPdll = /ALw /W3 /Zp /GD /G2 
LINKFLAGS=/NOD /ONERROR:NOEXE

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

dynatest.exe:     dynatest.obj dynatest.def dynatest.res dynamenu.obj inputdlg.obj
	link $(LINKFLAGS) dynatest dynamenu inputdlg, dynatest, NUL, $(LIBS),dynatest.def;
	rc -K /t dynatest.res

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

dynatest.obj:  dynatest.h resource.h

dynamenu.obj: dynamenu.h

inputdlg.obj: inputdlg.h



