home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / w3_prog / 3d.arj / DEMO < prev    next >
Encoding:
Text File  |  1991-08-01  |  1.1 KB  |  36 lines

  1. # Standard Windows make file.  The utility MAKE.EXE compares the
  2. # creation date of the file to the left of the colon with the file(s)
  3. # to the right of the colon.  If the file(s) on the right are newer
  4. # then the file on the left, Make will execute all of the command lines
  5. # following this line that are indented by at least one tab or space.
  6. # Any valid MS-DOS command line may be used.
  7.  
  8. # This line allows NMAKE to work as well
  9.  
  10. # Update the resource if necessary
  11.  
  12. all.res: demo.rc demo.h ids.h demo.dlg
  13.     rc -r demo.rc
  14.  
  15. # Update the object file if necessary
  16.  
  17. demodlg.obj: demodlg.c ids.h
  18.    cl -c -AS -Gsw -Od -Zpei demodlg.c
  19.  
  20. demo.obj: demo.c demo.h ids.h
  21.    cl -c -AS -Gsw -Od -Zpei demo.c
  22.  
  23. # Update the executable file if necessary, and if so, add the resource back in.
  24.  
  25. all.exe: demodlg.obj demo.obj demo.def ids.h demo.h
  26.     link /CO /NOD demo+demodlg,,, libw slibcew three_d, demo.def
  27.     rc demo.res
  28.  
  29. # If the .res file is new and the .exe file is not, update the resource.
  30. # Note that the .rc file can be updated without having to either 
  31. # compile or link the file.
  32.  
  33. demo.exe: demo.res ids.h
  34.     rc demo.res
  35. 
  36.