home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / pmod01 / source / makefile < prev    next >
Encoding:
Makefile  |  1994-03-10  |  1.9 KB  |  77 lines

  1. #############################################################################
  2. #
  3. #                   Copyright (C) 1994 SciTech Software.
  4. #                           All rights reserved.
  5. #
  6. # Descripton:   Makefile for the PMODE library sample programs.
  7. #               MSDOS version for Borland C++ 3.1 in real mode
  8. #
  9. # $Id: makefile 1.1 1994/03/10 09:06:50 kjb Exp $
  10. #
  11. #############################################################################
  12.  
  13. INC_DEST        = \bc\include\myinc
  14. CC              = bcc               # Name of C compiler
  15.  
  16. !if $d(debug)
  17. CC_DOPT         = -v                # Turn on debugging for C compiler
  18. !endif
  19.  
  20. CC_FLAGS        = -ml $(CC_DOPT)
  21.  
  22. # Implicit rules to make the object files for the library...
  23.  
  24. .c.obj:
  25.     $(CC) $(CC_FLAGS) -c {$< }
  26.  
  27. # Object files required by the library
  28.  
  29. all: memtest.exe biosptr.exe video.exe isvesa.exe alias.exe
  30.  
  31. memtest.exe: pmode.obj memtest.obj
  32.     $(CC) $(CC_FLAGS) memtest.obj pmode.obj
  33.  
  34. biosptr.exe: pmode.obj biosptr.obj
  35.     $(CC) $(CC_FLAGS) biosptr.obj pmode.obj
  36.  
  37. video.exe: pmode.obj video.obj
  38.     $(CC) $(CC_FLAGS) video.obj pmode.obj
  39.  
  40. isvesa.exe: pmode.obj isvesa.obj
  41.     $(CC) $(CC_FLAGS) isvesa.obj pmode.obj
  42.  
  43. alias.exe: pmode.obj alias.obj
  44.     $(CC) $(CC_FLAGS) alias.obj pmode.obj
  45.  
  46. # Clean up directory removing all files not needed to make the library
  47.  
  48. clean:
  49.     @del *.sym *.obj
  50.  
  51. realclean:  clean
  52.     @del *.exe
  53.  
  54. #
  55. # RCS maintenance routines.
  56. #
  57.  
  58. stamp:
  59.     @foreach "rcs -N$(VERSION): -srelease" files.lst
  60.  
  61. rcsclean:
  62.     @foreach rcsclean files.lst
  63.  
  64. # Check in the latest revisions of source files with RCS
  65.  
  66. ci:
  67.     copy $(INC_DEST)\pmode.h
  68.     @foreach "ci -q -u -mnone $(RCSOPT)" files.lst
  69.     move pmode.h $(INC_DEST)
  70.  
  71. # Check out the latest revisions of source files from RCS
  72.  
  73. co:
  74.     @foreach "co -q $(RCSOPT)" files.lst
  75.     move pmode.h $(INC_DEST)
  76.  
  77.