#
# MAKEFILE
#
# FAULT
# Copyright(c) Microsoft Corp. 1992 All Rights Reserved
#

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

#Compiler and assembler flags
CFLAGS=-c -G2sw -W3 -AS -Od -Zpe
AFLAGS=-Mx -L -Zi

#Standard definitions.
DEFS=-DDEBUG


#Files on which every C file depends.  Add others as appropriate
INCLS=fault.h

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

goal:  fault.exe

OBJS = fault.obj handler.obj

RCFILES=fault.h fault.ico

#####

.asm.obj:
    echo ++++++++++
    echo Assembliny $*.asm
    masm $(AFLAGS) $(DEFS) $*.asm;

.c.obj:
    echo ++++++++++
    echo Compiling $*.c
    cl $(CFLAGS) $(DEFS) $*.c


.rc.res:
    echo +++++++++
    echo Compiling Resources
    rc -r $*.rc


fault.exe : $(OBJS) fault.res fault.lnk fault.def
    echo +++++++++
    echo Linking
    link @fault.lnk
    rc -v fault.res


##### Dependencies #####

handler.obj  : handler.asm
fault.obj    : fault.c    $(INCLS)
fault.res    : fault.rc   $(INCLS) $(RCFILES)
