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 / MEMSTAT.ZIP / MAKEFILE next >
Text File  |  1993-03-01  |  701b  |  26 lines

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