home *** CD-ROM | disk | FTP | other *** search
/ MS DOS Archives 1 / MS-DOS_Archives_Volume_One_Walnut_Creek.iso / msdos / graphics / grafxlib.arc / MAKETC < prev    next >
Text File  |  1987-08-31  |  2KB  |  62 lines

  1. #
  2. # Make file for Grafix, Turbo C. Typing 'make -fmaketc' will build
  3. #   a small model library called grafix.lib. To compile a different
  4. #   memory model, set other compiler options, or change the name of
  5. #   the library, set the cflags, asmflags, and/or libname macros
  6. #   from the command line. For example, if you want to build a
  7. #   medium model library, you should type:
  8. #      make -Dcflags=-mm -Dasmflags=/DMEDIUM -Dlibname=grafixm -fmaketc
  9. #   Be sure that no object modules that were compiled with a different
  10. #   memory model are lying around! The batch file buildtc.bat will
  11. #   automatically build all four libraries from scratch. Oh, and also
  12. #   be sure you have the compiler properly configured so that it
  13. #   can find its include files. You will also need to have MASM and
  14. #   Microsoft's LIB utility on your search path.
  15. #
  16.  
  17. #
  18. # Note: on the version of Turbo Make I have (dated 1:00 may 13), the $d
  19. #  macro doesn't seem to work. Thus, you'll always have to specify cflags,
  20. #  asmflags, and libname from the command line (buildtc.bat does this, so
  21. #  it's all right). If the make you have works in this regard, remove
  22. #  the #'s from the following lines.
  23. #
  24.  
  25. #!if $d(cflags)
  26. #cflags=
  27. #!endif
  28. #!if !$d(asmflags)
  29. #asmflags=/DSMALL
  30. #!endif
  31. #!if !$d(libname)
  32. #libname=grafix
  33. #!endif
  34.  
  35. # -c = don't link
  36. .c.obj:
  37.   tcc -c $(cflags) $*
  38.   lib $(libname) -+$*;
  39.  
  40. # /Mx = case is signifigant
  41. .asm.obj:
  42.   masm /Mx $(asmflags) $*;
  43.   lib $(libname) -+$*;
  44.  
  45. $(libname).lib: graf.obj graflib.obj cgagrafa.obj egagrafa.obj cgagraf.obj \
  46.                 egagraf.obj halofake.obj
  47.  
  48. graf.obj: graf.c macros.h graf.h grafsys.h cga.h ega.h
  49.  
  50. graflib.obj: graflib.asm macros.ah
  51.  
  52. cgagrafa.obj: cgagrafa.asm macros.ah
  53.  
  54. egagrafa.obj: egagrafa.asm macros.ah
  55.  
  56. cgagraf.obj: cgagraf.c macros.h grafsys.h cga.h
  57.  
  58. egagraf.obj: egagraf.c macros.h grafsys.h ega.h
  59.  
  60. halofake.obj: halofake.c macros.h graf.h
  61.  
  62.