#.silent:

#
# Nmake macros for building the Windows 32-Bit
# GNU Hyperoids (Win32 port) Application
#

!include <ntwin32.mak>

# macro defines
PROJ=Hyperoid
OBJ1=RoidSupp

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

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

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

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

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


clean:
    -del *.obj *.exe
