# Nmake macros for building Windows 32-Bit apps

!include <ntwin32.mak>

all: sysmon.exe

# Update the resource if necessary

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

# Update the object file if necessary

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

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

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