# ************************************************************************
#
#                       Microsoft Developer Support
#                Copyright (c) 1992 Microsoft Corporation
#
# *************************************************************************
# MAKEFILE : Sample32
# PURPOSE  : A Small Win32/Win16 Sample Application Template Makefile
# *************************************************************************
!include <ntwin32.mak>

PROJ=Sample

# This line allows NMAKE to work as well
all: $(PROJ).exe

# Update the resource if necessary
$(PROJ).res: $(PROJ).rc $(PROJ).dlg $(PROJ).h
    rc -r -dWIN32 -fo $(PROJ).res $(PROJ).rc
    cvtres -$(CPU) $(PROJ).res -o $(PROJ).rbj

# Update the object file if necessary
$(PROJ).obj: $(PROJ).c $(PROJ).h
    $(cc) $(cdebug) $(cflags) $(cvars) $(PROJ).c

# Update the executable file if necessary, and if so, add the resource back in.
$(PROJ).exe: $(PROJ).obj $(PROJ).res $(PROJ).def
    $(link)  $(linkdebug) $(guiflags) \
    -out:$(PROJ).exe                  \
    $(PROJ).obj $(PROJ).rbj $(guilibs)
