#
#   Makefile for Sample Application
#

CC     =   cl -c -AM -Gsw -nologo -Od -W3 -Zipe -Fl
SRC    =   DMLSRV.c init.c dialogs.c callback.c
OBJ    =   DMLSRV.obj init.obj dialogs.obj callback.obj

.c.obj      :
                $(CC) -NT $* $*.c

DMLSRV.exe  :	$(OBJ) DMLSRV.res DMLSRV.def  makefile
		link @<<
		/m/CO/NOD/NOE/NOL/A:16 DMLSRV.obj init.obj dialogs.obj callback.obj
		DMLSRV.exe
		DMLSRV.map
		mlibcew libw ddeml.lib
		DMLSRV.def
<<
		mapsym DMLSRV
		rc -T DMLSRV.res DMLSRV.exe

DMLSRV.res  :	DMLSRV.rc global.h DMLSRV.ico DMLSRV.dlg
		rc -r DMLSRV.rc

##### Clean Directory #####
clean:
    -del *.obj
    -del *.res
    -del *.map
    -del *.sym
    -del *.cod
