# Nmake macros for building Windows 32-Bit apps

!include <ntwin32.mak>

all: procmon.exe

# Update the resource if necessary

procmon.rbj: procmon.rc procmon.h
    rc -r -fo procmon.res procmon.rc
    cvtres -$(CPU) procmon.res -o procmon.rbj

# Update the object file if necessary

procmon.obj: procmon.c procmon.h
    $(cc) $(cdebug) $(cflags) $(cvars) procmon.c

# Update the executable file if necessary, and if so, add the resource back in.

procmon.exe: procmon.obj procmon.rbj
    $(cvtobj) $(cvtdebug) *.obj
    $(link) $(linknodebug) $(guiflags) -out:procmon.exe procmon.obj procmon.rbj $(guilibs) advapi32.lib
