.SUFFIXES:
.SUFFIXES: .c .rc .obj .res .h

.SILENT:

BASENAME=BitmapViewer

all: $(BASENAME).exe


{..}.c.obj:
   icc /C /Gd+ /Gm+ /Ti+ /O- /Q+ /I$(SRCDIR) /DDEBUG /DDEBUG_TERM /Wall+ppc-ppt- %s

{..}.rc.res:
   rc -n -r -i .. %s $(@B).res


!include ..\makeglobals


$(BASENAME).exe: $(OBJS) $(@B).def $(@B).res makefile
   @ilink /nologo @<<
   /noinformation /exec /out:$(@B) /map:$(@B) /debug
   $(OBJS)
   $(@B).def
<<
   rc -n $(@B).res $@
   dllrname /Q /R $@ cppom30=os2om30
   @mapsym -n $(@B).map
   %do successful_build
   %cd Debug

clean:
   del *.obj
   del *.res
   del $(BASENAME).exe
   del $(BASENAME).map
   del $(BASENAME).sym

