home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / EMSLB221.ZIP / EXMAKEMS < prev    next >
Text File  |  1991-10-13  |  5KB  |  141 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR EMSTEST TESTER/EXAMPLE PROGRAM FOR EMSLIB
  3. # MICROSOFT COMPILERS
  4. # 10/13/91
  5. #
  6. #   This is an example makefile for Microsoft C, to make the EMSTEST tester/
  7. # example program in any of the six supported memory models. It is compatible
  8. # with the NMAKE utility provided with the compiler. As supplied, it is set
  9. # up for Microsoft C 6.00A. To reconfigure for earlier compilers, two changes
  10. # may be required. First, check if your version of the compiler has the
  11. # library functions _fmemcmp() and _fmemset(). If it does not, add "/DNO_FFUNC"
  12. # to the line that begins "CFLAGS". Second, check if your version of the
  13. # compiler supports in-line assembly code. If it does, no changes should be
  14. # necessary. If it does not or you do not wish to use the in-line assembly
  15. # code (it improves execution speed significantly, but it's your choice),
  16. # simply remove "/DINLINE_ASM" from the line that begins "CFLAGS".
  17. #
  18. #   Before using this makefile, make sure that the Microsoft NMAKE utility
  19. # and the appropriate command-line compiler and linker are in your path,
  20. # and that the necessary environment variables (INCLUDE and LIB) are set
  21. # appropriately. The three source files (EMSTEST.C, EMSTEST2.C, and
  22. # EMSTEST3.C), the header files (EMSTEST.H and EMSLIB.H), and the appropriate
  23. # library or libraries (EMSLIB*.LIB) should all be in the current directory
  24. #
  25. #    To use the makefile, type "nmake /f exmakems target", where 'target' is
  26. # one or more of tiny, small, medium, compact, large, or huge separated by
  27. # spaces. For example, "nmake /f exmakems tiny" would make the tiny-model
  28. # example and "nmake /f exmakems small large" would make the small- and
  29. # large-model examples. "nmake /f exmakems" will make the test programs
  30. # for all memory models.
  31. #
  32.  
  33.  
  34. CC    =cl
  35. CFLAGS    = /c /DINLINE_ASM
  36.  
  37. LINK    = link
  38. LF    =
  39.  
  40.  
  41. all:        tiny small medium compact large huge
  42.  
  43. tiny:        emstesta emstestb emstestc
  44.  
  45. small:        semstest
  46.  
  47. medium:        memstest
  48.  
  49. compact:    cemstest
  50.  
  51. large:        lemstest
  52.  
  53. huge:        hemstest
  54.  
  55.  
  56. emstesta.obj:    emstest.c emstest.h
  57.     $(CC) $(CFLAGS) /AT /DTINYPASS1 /Fo$@ emstest.c
  58.  
  59. emstestb.obj:    emstest.c emstest.h
  60.     $(CC) $(CFLAGS) /AT -DTINYPASS2 /Fo$@ emstest.c
  61.  
  62. emstestc.obj:    emstest.c emstest.h
  63.     $(CC) $(CFLAGS) /AT -DTINYPASS3 /Fo$@ emstest.c
  64.  
  65. semstest.obj:    emstest.c emstest.h
  66.     $(CC) $(CFLAGS) /AS /Fo$@ emstest.c
  67.  
  68. memstest.obj:    emstest.c emstest.h
  69.     $(CC) $(CFLAGS) /AM /Fo$@ emstest.c
  70.  
  71. cemstest.obj:    emstest.c emstest.h
  72.     $(CC) $(CFLAGS) /AC /Fo$@ emstest.c
  73.  
  74. lemstest.obj:    emstest.c emstest.h
  75.     $(CC) $(CFLAGS) /AL /Fo$@ emstest.c
  76.  
  77. hemstest.obj:    emstest.c emstest.h
  78.     $(CC) $(CFLAGS) /AH /Fo$@ emstest.c
  79.  
  80. temstst2.obj:    emstest2.c emstest.h
  81.     $(CC) $(CFLAGS) /AT /Fo$@ emstest2.c
  82.  
  83. semstst2.obj:    emstest2.c emstest.h
  84.     $(CC) $(CFLAGS) /AS /Fo$@ emstest2.c
  85.  
  86. memstst2.obj:    emstest2.c emstest.h
  87.     $(CC) $(CFLAGS) /AM /Fo$@ emstest2.c
  88.  
  89. cemstst2.obj:    emstest2.c emstest.h
  90.     $(CC) $(CFLAGS) /AC /Fo$@ emstest2.c
  91.  
  92. lemstst2.obj:    emstest2.c emstest.h
  93.     $(CC) $(CFLAGS) /AL /Fo$@ emstest2.c
  94.  
  95. hemstst2.obj:    emstest2.c emstest.h
  96.     $(CC) $(CFLAGS) /AH /Fo$@ emstest2.c
  97.  
  98. temstst3.obj:    emstest3.c emstest.h
  99.     $(CC) $(CFLAGS) /AT /Fo$@ emstest3.c
  100.  
  101. semstst3.obj:    emstest3.c emstest.h
  102.     $(CC) $(CFLAGS) /AS /Fo$@ emstest3.c
  103.  
  104. memstst3.obj:    emstest3.c emstest.h
  105.     $(CC) $(CFLAGS) /AM /Fo$@ emstest3.c
  106.  
  107. cemstst3.obj:    emstest3.c emstest.h
  108.     $(CC) $(CFLAGS) /AC /Fo$@ emstest3.c
  109.  
  110. lemstst3.obj:    emstest3.c emstest.h
  111.     $(CC) $(CFLAGS) /AL /Fo$@ emstest3.c
  112.  
  113. hemstst3.obj:    emstest3.c emstest.h
  114.     $(CC) $(CFLAGS) /AH /Fo$@ emstest3.c
  115.  
  116.  
  117. emstesta:    emstesta.obj emslibs.lib
  118.     $(LINK) $(LF) /ST:0x800 emstesta, emstesta, , emslibs ;
  119.  
  120. emstestb:    emstestb.obj temstst2.obj emslibs.lib
  121.     $(LINK) $(LF) /ST:0x800 emstestb temstst2, emstestb, , emslibs ;
  122.  
  123. emstestc:    emstestc.obj temstst3.obj emslibs.lib
  124.     $(LINK) $(LF) /ST:0x800 emstestc temstst3, emstestc, , emslibs ;
  125.  
  126. semstest:    semstest.obj semstst2.obj semstst3.obj emslibs.lib
  127.     $(LINK) $(LF) semstest semstst2 semstst3, semstest, , emslibs ;
  128.  
  129. memstest:    memstest.obj memstst2.obj memstst3.obj emslibm.lib
  130.     $(LINK) $(LF) memstest memstst2 memstst3, memstest, , emslibm ;
  131.  
  132. cemstest:    cemstest.obj cemstst2.obj cemstst3.obj emslibc.lib
  133.     $(LINK) $(LF) cemstest cemstst2 cemstst3, cemstest, , emslibc ;
  134.  
  135. lemstest:    lemstest.obj lemstst2.obj lemstst3.obj emslibl.lib
  136.     $(LINK) $(LF) lemstest lemstst2 lemstst3, lemstest, , emslibl ;
  137.  
  138. hemstest:    hemstest.obj hemstst2.obj hemstst3.obj emslibh.lib
  139.     $(LINK) $(LF) hemstest hemstst2 hemstst3, hemstest, , emslibh ;
  140.  
  141.