# Nmake macros for building Windows 32-Bit apps

!include <ntwin32.mak>

# This line allows NMAKE to work as well

all: locale.exe

# Update the resource if necessary

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

# Update the object file if necessary

locale.obj: locale.c locale.h
    $(cc) $(cflags) $(cvars) locale.c

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

locale.exe: locale.obj locale.res locale.def
    $(cvtobj) $(cvtdebug) *.obj
    $(link) $(guiflags) -out:locale.exe locale.obj locale.res $(guilibs)
