home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 4.ddi / NETBIOS / MAKESRVX.MAK < prev    next >
Encoding:
Text File  |  1989-04-18  |  4.1 KB  |  170 lines

  1.  
  2. ######################################################################
  3. # Make library for c-tree server and make ctsrvrx.exe
  4. # Invoke with MAKESRVX.BAT
  5. #
  6. # For PC LAN file server extension version.
  7. #
  8. ######################################################################
  9.  
  10.  
  11.  
  12. ##################
  13. # default macros #
  14. ##################
  15.  
  16. # c compiler
  17. COMPILER=cl /c
  18.  
  19. # assembler
  20. ASM=masm
  21.  
  22. # c compiler model switch
  23. CM=/AS
  24.  
  25. # assemble model define
  26. AM=SMALL
  27.  
  28. # obj/exe/lib directory
  29. D=SSRV
  30.  
  31. #c compile include path
  32. P=/I .\ /I ..\ /I ..\msc
  33.  
  34. #linker name
  35. LINK=link
  36.  
  37. #library name
  38. LN=ctslib
  39.  
  40. #full library name
  41. SLIB=$(LN).lib
  42.  
  43.  
  44. ################################
  45. # complile all library modules #
  46. ################################
  47.  
  48.  
  49. $(D)\ctvrc2.obj: ..\ctvrc2.c
  50.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  51.  
  52. $(D)\ctdelk.obj: ..\ctdelk.c
  53.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  54.  
  55. $(D)\ctaddk.obj: ..\ctaddk.c
  56.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  57.  
  58. $(D)\ctupdt.obj: ..\ctupdt.c
  59.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  60.  
  61. $(D)\ctsrch.obj: ..\ctsrch.c
  62.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  63.  
  64. $(D)\ctfrac.obj: ..\ctfrac.c
  65.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  66.  
  67. $(D)\ctdatf.obj: ..\ctdatf.c
  68.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  69.  
  70. $(D)\ctkeyf.obj: ..\ctkeyf.c
  71.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  72.  
  73. $(D)\ctkrnl.obj: ..\ctkrnl.c
  74.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  75.  
  76. $(D)\ctclb3.obj: ..\ctclb3.c
  77.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  78.  
  79. $(D)\ctcomp.obj: ..\ctcomp.c
  80.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  81.  
  82. $(D)\ctvrcu.obj: ..\ctvrcu.c
  83.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  84.  
  85. $(D)\ctinit.obj: ..\ctinit.c
  86.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  87.  
  88. $(D)\ctdelf.obj: ..\ctdelf.c
  89.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  90.  
  91. $(D)\ctclb2.obj: ..\ctclb2.c
  92.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  93.  
  94. $(D)\ctclib.obj: ..\msc\ctclib.c
  95.     copy ..\msc\ctoptn.h ..\msc\ctoptn.sav
  96.     del ..\msc\ctoptn.h
  97.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\msc\$*.c
  98.     copy ..\msc\ctoptn.sav ..\msc\ctoptn.h
  99.  
  100. $(D)\ctslok.obj: ..\ctslok.c    # low level disk interface
  101.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  102.  
  103. $(D)\ctrfio.obj: ctrfio.c    # low level disk interface
  104.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  105.  
  106. $(D)\ctsrve.obj: ..\ctsrve.c
  107.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  108.  
  109. $(D)\ctsprtf.obj: ctsprtf.c
  110.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  111.  
  112. $(D)\ctfulnam.obj: ctfulnam.c
  113.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  114.  
  115. #####################
  116. # build the library #
  117. #####################
  118.  
  119. $(D)\$(SLIB): $(D)\ctvrc2.obj \
  120.             $(D)\ctsrve.obj $(D)\ctsprtf.obj $(D)\ctfulnam.obj \
  121.             $(D)\ctdelk.obj $(D)\ctaddk.obj $(D)\ctupdt.obj \
  122.             $(D)\ctfrac.obj \
  123.             $(D)\ctsrch.obj $(D)\ctdatf.obj $(D)\ctkeyf.obj \
  124.             $(D)\ctkrnl.obj $(D)\ctcomp.obj $(D)\ctvrcu.obj \
  125.             $(D)\ctinit.obj $(D)\ctdelf.obj $(D)\ctclb2.obj \
  126.             $(D)\ctslok.obj $(D)\ctclib.obj $(D)\ctclb3.obj \
  127.             $(D)\ctrfio.obj
  128.     cd $(D)
  129.     del $(LN).bak
  130.     ren $(SLIB) $(LN).bak
  131.     echo $(SLIB) > lrsp
  132.     echo y >> lrsp
  133.     echo +ctvrc2+ctsrve+ctsprtf+ctfulnam & >> lrsp
  134.     echo +ctdelk+ctaddk+ctupdt & >> lrsp
  135.     echo +ctfrac+ctsrch+ctdatf & >> lrsp
  136.     echo +ctkeyf+ctkrnl+ctcomp+ctvrcu & >> lrsp
  137.     echo +ctinit+ctdelf+ctclb2+ctslok+ctclib+ctclb3+ctrfio >> lrsp
  138.     echo $(LN).m >> lrsp
  139.     echo $(SLIB) >> lrsp
  140.     lib @lrsp
  141.     del lrsp
  142.     cd ..
  143.  
  144. ##################################
  145. # compile environment dependent  #
  146. # files for non-dedicated server #
  147. ##################################
  148.  
  149.  
  150. $(D)\ctsrvr.obj: ..\ctsrvr.c
  151.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  152.  
  153. $(D)\ctsmsgx.obj: ctsmsgx.c
  154.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  155.  
  156. $(D)\ctsrvx.obj: ctsrvx.asm
  157.     $(ASM) $*/ml/D$(AM);
  158.     copy $*.obj $(D)\*.*
  159.     del $*.obj
  160.  
  161. ############################################
  162. # link non-dedicated file server extension #
  163. ############################################
  164.  
  165. $(D)\ctsrvrx.exe: $(D)\ctsrvr.obj $(D)\ctsmsgx.obj \
  166.             $(D)\ctsrvx.obj $(D)\$(SLIB)
  167.     cd $(D)
  168.     link ctsrvr+ctsmsgx+ctsrvx/m /NOE $(CP),ctsrvrx,ctsrvrx,$(LN);
  169.     cd ..
  170.