home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / msjmar93.zip / MEMMAN.ZIP / VMMAP.ZIP / MAKEFILE next >
Text File  |  1993-03-01  |  741b  |  29 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. PROG = VMMap
  6.  
  7. RESOURCES = $(PROG).Ico
  8.  
  9.  
  10. # This line allows NMAKE to work as well
  11. all: $(PROG).exe
  12.  
  13. # Update the resource if necessary
  14.  
  15. $(PROG).rbj: $(PROG).rc $(PROG).h $(RESOURCES)
  16.     rc -r -fo $(PROG).res $(PROG).rc
  17.     cvtres -$(CPU) $(PROG).res -o $(PROG).rbj
  18.  
  19. # Update the object file if necessary
  20.  
  21. $(PROG).obj: $(PROG).c $(PROG).h
  22.     $(cc) $(cdebug) $(cflags) $(cvars) $(PROG).c
  23.  
  24. # Update the executable file if necessary, and if so, add the resource back in.
  25.  
  26. $(PROG).exe: $(PROG).obj $(PROG).rbj $(PROG).def
  27.     $(cvtobj) $(cvtdebug) *.obj
  28.     $(link) $(linkdebug) $(guiflags) -out:$(PROG).exe $(PROG).obj $(PROG).rbj $(guilibs)
  29.