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

.SILENT:

BASENAME=BitmapViewer

all: $(BASENAME).exe

{..}.c.obj:
   @icc /C /Gd+ /Gm+ /G5 /Gi+ /Gu+ /Ti- /O+ /Q+ /I. /Wall+ppc-ppt- %s

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



!include ..\makeglobals


$(BASENAME).exe: $(OBJS) $(@B).def $(@B).res
   ilink /nologo @<<
      /noinformation /exec /out:$(@B) /map:$(@B) /exepack:2 /nodebug /optfunc /packcode /packdata
      $(OBJS)
      $(@B).def
   <<
   rc -n -x2 $(@B).res $@
   dllrname /Q /R $@ cppom30=os2om30
   mapsym -n $(@B).map
   %do successful_build
   %cd release


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

