home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 05oslib / bios / bios.mk next >
Encoding:
Text File  |  1988-08-11  |  2.7 KB  |  94 lines

  1. # makefile for the BIOS library
  2.  
  3. LINC = c:\include\local
  4. LLIB = c:\lib\local
  5.  
  6. # --- memory model information ---
  7. # edit the MODEL line to choose the desired memory model
  8. # [C=compact, L=large (and huge), M=medium, S=small) 
  9. MODEL = S        # small model
  10. BIOS = $(MODEL)bios    # target library
  11.  
  12. # --- objects ---
  13. O1 = clrscrn.obj clrw.obj curback.obj delay.obj drawbox.obj ega_info.obj
  14. O2 = equipchk.obj getctype.obj getstate.obj getticks.obj kbd_stat.obj
  15. O3 = memsize.obj palette.obj putcur.obj putfld.obj putstr.obj put_ch.obj
  16. O4 = readca.obj readcur.obj readdot.obj scroll.obj setctype.obj setpage.obj
  17. O5 = setvmode.obj writea.obj writec.obj writeca.obj writedot.obj writemsg.obj
  18. O6 = writestr.obj writetty.obj
  19.  
  20. # --- compile sources ---
  21. clrscrn.obj:    clrscrn.c $(LINC)\bioslib.h $(LINC)\std.h
  22.  
  23. clrw.obj:    clrw.c $(LINC)\bioslib.h $(LINC)\std.h
  24.  
  25. curback.obj:    curback.c $(LINC)\bioslib.h
  26.  
  27. delay.obj:    delay.c $(LINC)\timer.h
  28.  
  29. drawbox.obj:    drawbox.c $(LINC)\video.h
  30.  
  31. ega_info.obj:    ega_info.c $(LINC)\bioslib.h $(LINC)\video.h
  32.  
  33. equipchk.obj:    equipchk.c $(LINC)\bioslib.h $(LINC)\equip.h
  34.  
  35. getctype.obj:    getctype.c $(LINC)\bioslib.h $(LINC)\std.h
  36.  
  37. getstate.obj:    getstate.c $(LINC)\bioslib.h $(LINC)\std.h
  38.  
  39. getticks.obj:    getticks.c $(LINC)\bioslib.h
  40.  
  41. kbd_stat.obj:    kbd_stat.c $(LINC)\bioslib.h $(LINC)\keybdlib.h
  42.  
  43. memsize.obj:    memsize.c $(LINC)\bioslib.h $(LINC)\std.h
  44.  
  45. palette.obj:    palette.c $(LINC)\bioslib.h
  46.  
  47. putcur.obj:    putcur.c $(LINC)\bioslib.h $(LINC)\std.h
  48.  
  49. putfld.obj:    putfld.c $(LINC)\bioslib.h
  50.  
  51. putstr.obj:    putstr.c $(LINC)\bioslib.h
  52.  
  53. put_ch.obj:    put_ch.c $(LINC)\bioslib.h
  54.  
  55. readca.obj:    readca.c $(LINC)\bioslib.h $(LINC)\std.h
  56.  
  57. readcur.obj:    readcur.c $(LINC)\bioslib.h $(LINC)\std.h
  58.  
  59. readdot.obj:    readdot.c $(LINC)\bioslib.h $(LINC)\std.h
  60.  
  61. scroll.obj:    scroll.c $(LINC)\bioslib.h $(LINC)\std.h
  62.  
  63. setctype.obj:    setctype.c $(LINC)\bioslib.h
  64.  
  65. setpage.obj:    setpage.c $(LINC)\bioslib.h $(LINC)\std.h $(LINC)\video.h
  66.  
  67. setvmode.obj:    setvmode.c $(LINC)\bioslib.h $(LINC)\std.h
  68.  
  69. writea.obj:    writea.c $(LINC)\std.h
  70.  
  71. writec.obj:    writec.c $(LINC)\bioslib.h $(LINC)\std.h
  72.  
  73. writeca.obj:    writeca.c $(LINC)\bioslib.h $(LINC)\std.h
  74.  
  75. writedot.obj:    writedot.c $(LINC)\bioslib.h $(LINC)\std.h
  76.  
  77. writemsg.obj:    writemsg.c $(LINC)\std.h
  78.  
  79. writestr.obj:    writestr.c $(LINC)\std.h
  80.  
  81. writetty.obj:    writetty.c $(LINC)\bioslib.h $(LINC)\std.h
  82.  
  83.  
  84. # --- create and install the library ---
  85. $(LLIB)\$(BIOS).lib:    $(O1) $(O2) $(O3) $(O4) $(O5) $(O6)
  86.     del $(LLIB)\$(BIOS).lib
  87.     lib $(LLIB)\$(BIOS) +$(O1);
  88.     lib $(LLIB)\$(BIOS) +$(O2);
  89.     lib $(LLIB)\$(BIOS) +$(O3);
  90.     lib $(LLIB)\$(BIOS) +$(O4);
  91.     lib $(LLIB)\$(BIOS) +$(O5);
  92.     lib $(LLIB)\$(BIOS) +$(O6);
  93.     del $(LLIB)\$(BIOS).bak
  94.