# Nmake macros for building Windows 32-Bit apps

!include <ntwin32.mak>

# This line allows NMAKE to work as well

all: getnextw.exe

# Update the resource if necessary

res.res: res.rc getnextw.h
    rc -r -fo res.tmp res.rc
    cvtres -$(CPU) res.tmp -o res.res
    del res.tmp

# Update the object file if necessary

getnextw.obj: getnextw.c getnextw.h
    $(cc) $(cflags) $(cvars) getnextw.c
    $(cvtobj) getnextw.obj

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

getnextw.exe: getnextw.obj res.res getnextw.def
    $(link) $(guiflags) -out:getnextw.exe getnextw.obj res.res $(guilibs)
