#
# MAKEFILE
#

#Remove '#' from next line for "silent" operation
!CMDSWITCHES +s

.SUFFIXES: .h .c .asm .obj .exe .cxx .res .rc .bas

goal:  fault.exe

.asm.obj:
    masm -Mx  $*.asm;

.c.obj:
    cl -c -G2sw -W3 -AS -Od -Zpe $*.c

.rc.res:
    rc -r $*.rc

fault.exe : fault.obj handler.obj fault.res fault.lnk fault.def
    link fault handler, fault/al:16,,libw toolhelp slibcew/NOD/NOE, fault.def
    rc -v fault.res


##### Dependencies #####
handler.obj  : handler.asm
fault.obj    : fault.c      fault.h
fault.res    : fault.rc     fault.h fault.rc
