# Nmake macros for building Windows 32-Bit apps

NODEBUG=1
!include <win32.mak>

all: minwins.exe

# Update the resource if necessary

minwins.res: minwins.rc
    rc $(rcflags) $(rcvars)  minwins.rc

# Update the object file if necessary

minwins.obj: minwins.c
    $(cc) $(cflags) $(cvars) $(cdebug) minwins.c

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

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

minwins.exe: minwins.obj list.obj minwins.res
    $(link) $(linkdebug) /NODEFAULTLIB -out:minwins.exe minwins.obj list.obj minwins.res $(guilibs) shell32.lib
