home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_05 / 2n05036a < prev    next >
Text File  |  1991-03-27  |  961b  |  63 lines

  1. #
  2. #  File:    Makefile for Net_CD.SYS
  3. #  Purpose:    Constructs the driver from
  4. #        component objects
  5. #
  6.  
  7. #  Object file options
  8. #
  9. aopts    = /ml
  10. copts    = -AS -c -Zp -Ox -Gs -Zl
  11.  
  12. #
  13. #  Object file builders
  14. #
  15. cc    = cl $(copts) $*.c
  16. asm    = masm $(aopts) $*,,$*;
  17.  
  18. #
  19. #  Object building rules
  20. #
  21. .c.obj:
  22.     $(cc)
  23.  
  24. .asm.obj:
  25.     $(asm)
  26.  
  27. #  Dependencies
  28. #
  29. incfile    = device.h netbios.h standard.h
  30.  
  31. net_cd.obj:    net_cd.asm $(incfile)
  32.  
  33. init.obj:    init.c $(incfile)
  34.  
  35. command.obj:    command.c $(incfile)
  36.  
  37. ioctl.obj:    ioctl.c $(incfile)
  38.  
  39. cdrom.obj:    cdrom.c $(incfile)
  40.  
  41. netbios.obj:    netbios.c $(incfile)
  42.  
  43. #
  44. #  Link Device Driver
  45. #
  46. net_cd.sys:    net_cd.obj command.obj ioctl.obj \
  47.         cdrom.obj netbios.obj init.obj
  48.     link /noi /nod /m $**;
  49.     exe2bin net_cd.exe net_cd.sys
  50.  
  51. #
  52. #  Server objects
  53. #
  54.  
  55. sutil.obj:    sutil.asm $(incfile)
  56.  
  57. server.obj:    server.c $(incfile)
  58.  
  59. server.exe:    server.obj netbios.obj sutil.obj
  60.     link /Co /noi /m $**,,,SLIBCE;
  61.