home *** CD-ROM | disk | FTP | other *** search
/ Windows Shareware GOLD / NuclearComputingVol3No1.cdr / other / f1490 / makefile next >
Makefile  |  1990-12-29  |  1KB  |  72 lines

  1. #    Conditional Optimization
  2. #
  3. #   This makefile uses nmake provided by microsoft C 6.0
  4. #
  5. #   Use stdio. if you only have the make.exe supplied with
  6. #   C 5.1 or masm 5.1
  7. #
  8.  
  9. ! IFNDEF NOOPT
  10. OPT=-Oail
  11. ! ELSE
  12. OPT=-Od
  13. ! ENDIF
  14.  
  15. #    Coditional Debugging
  16.  
  17. ! IFNDEF NODEBUG
  18. ZI=-Zepi
  19. ! ELSE
  20. ZI=Zep
  21. ! ENDIF
  22.  
  23. #    Compiler argument setup
  24.  
  25. CARGS= -c -AS -W2 -Gsw $(OPT) $(ZI)
  26. CC=cl $(CARGS)
  27.  
  28. #    Inference rules
  29.  
  30. .c.obj:
  31.     $(CC) $*.c $(TEE)
  32.  
  33. #    Build both Stdio and Testapp
  34.  
  35. All:    Stdio.exe Testapp.exe
  36.  
  37. #
  38. #    Stdio section
  39. #
  40.  
  41. Stdio.exe: stdio.obj Stdio.def Stdio.res
  42.     link5 /NOD /NOE /CO stdio.obj,Stdio.exe,,libw winpipe slibcew, Stdio.def;
  43.     rc Stdio.res
  44.  
  45.  
  46.  
  47. Stdio.obj:     Stdio.c Stdio.h
  48.     $(CC) $*.c $(TEE)
  49.     version > stdiov.h
  50.  
  51.  
  52. Stdio.res: Stdio.rc Stdio.h stdio.ico stdiov.h
  53.     rc -r Stdio.rc
  54.  
  55.  
  56. #
  57. #    Testapp section
  58. #
  59.  
  60. testapp.exe: testapp.obj testapp.def testapp.res
  61.     link5 /NOD /NOE /CO testapp.obj,testapp.exe,,libw winpipe slibcew, testapp.def;
  62.     rc testapp.res
  63.  
  64.  
  65. testapp.res: testapp.rc testapp.h    test.ico
  66.     rc -r testapp.rc
  67.  
  68.  
  69. testapp.obj:       testapp.c testapp.h testappv.h
  70.     $(CC) $*.c $(TEE)
  71.     version > testappv.h
  72.