home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 12sbuf / sbuf.mk < prev   
Encoding:
Text File  |  1988-08-11  |  1.1 KB  |  43 lines

  1. # makefile for the screen buffer (SBUF) library
  2.  
  3. LLIB = c:\lib\local
  4. LINC = c:\include\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. SBUF = $(MODEL)sbuf    # target library
  11.  
  12. # --- objects ---
  13. OBJ1 = sb_box.obj sb_fill.obj sb_init.obj sb_move.obj sb_new.obj
  14. OBJ2 = sb_put.obj sb_read.obj sb_scrl.obj sb_show.obj sb_write.obj
  15.  
  16. # --- compile sources ---
  17. sb_box.obj:    sb_box.c $(LINC)\sbuf.h $(LINC)\video.h $(LINC)\box.h
  18.  
  19. sb_fill.obj:    sb_fill.c $(LINC)\sbuf.h
  20.  
  21. sb_init.obj:    sb_init.c $(LINC)\sbuf.h
  22.  
  23. sb_move.obj:    sb_move.c $(LINC)\sbuf.h
  24.  
  25. sb_new.obj:    sb_new.c $(LINC)\sbuf.h
  26.  
  27. sb_put.obj:    sb_put.c $(LINC)\sbuf.h
  28.  
  29. sb_read.obj:    sb_read.c $(LINC)\sbuf.h
  30.  
  31. sb_scrl.obj:    sb_scrl.c $(LINC)\sbuf.h
  32.  
  33. sb_show.obj:    sb_show.c $(LINC)\sbuf.h
  34.  
  35. sb_write.obj:    sb_write.c $(LINC)\sbuf.h
  36.  
  37. # --- create and install the library ---
  38. $(LLIB)\$(SBUF).lib:    $(OBJ1) $(OBJ2)
  39.     del $(LLIB)\$(SBUF).lib
  40.     lib $(LLIB)\$(SBUF) +$(OBJ1);
  41.     lib $(LLIB)\$(SBUF) +$(OBJ2);
  42.     del $(LLIB)\$(SBUF).bak
  43.