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

  1. ######################################################################
  2. # Make applications library for c-tree application library
  3. # Invoke with MAKEAPPX.BAT
  4. #
  5. # For PC LAN file server extension version.
  6. #
  7. ######################################################################
  8.  
  9. ##################
  10. # default macros #
  11. ##################
  12.  
  13. # rtree directory
  14. RTREE=..\..\rtree
  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=SAPP
  30.  
  31. #c compile include path
  32. P=/I .\ /I ..\ /I ..\msc /I $(RTREE)
  33.  
  34. #linker name
  35. LINK=link
  36.  
  37. #library name
  38. LN=ctalib
  39.  
  40. #full library name
  41. ALIB=$(LN).lib
  42.  
  43. #linker object file list
  44. MSG=+ctamsgx+ctamsgxa+ctnbios+ctaxit/m
  45.  
  46. #make exe's dependency list
  47. DMSG=$(D)\ctamsgx.obj $(D)\ctamsgxa.obj $(D)\ctnbios.obj $(D)\ctaxit.obj
  48.  
  49. ################################
  50. # complile all library modules #
  51. ################################
  52.  
  53. $(D)\ctappx.obj: ..\ctappx.c
  54.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  55.  
  56. $(D)\ctapx2.obj: ..\ctapx2.c
  57.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  58.  
  59. $(D)\ctapx3.obj: ..\ctapx3.c
  60.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  61.  
  62. $(D)\ctapx4.obj: ..\ctapx4.c
  63.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  64.  
  65. $(D)\ctsset.obj: ..\ctsset.c
  66.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  67.  
  68. $(D)\ctisam.obj: ..\ctisam.c
  69.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  70.  
  71. $(D)\ctvrec.obj: ..\ctvrec.c
  72.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  73.  
  74. $(D)\ctvrcu.obj: ..\ctvrcu.c
  75.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  76.  
  77. $(D)\ctestm.obj: ..\ctestm.c
  78.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  79.  
  80. $(D)\ctism2.obj: ..\ctism2.c
  81.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  82.  
  83. $(D)\ctismc.obj: ..\ctismc.c
  84.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  85.  
  86. $(D)\ctismo.obj: ..\ctismo.c
  87.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  88.  
  89. $(D)\cticre.obj: ..\cticre.c
  90.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  91.  
  92. $(D)\ctiopn.obj: ..\ctiopn.c
  93.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  94.  
  95. $(D)\ctcomp.obj: ..\ctcomp.c
  96.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  97.  
  98. $(D)\cticls.obj: ..\cticls.c
  99.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  100.  
  101. $(D)\ctifil.obj: ..\ctifil.c
  102.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  103.  
  104. $(D)\ctismu.obj: ..\ctismu.c
  105.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  106.  
  107. $(D)\ctclb2.obj: ..\ctclb2.c    # low level disk interface
  108.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  109.  
  110. #####################
  111. # build the library #
  112. #####################
  113.  
  114. $(D)\$(ALIB): $(D)\ctappx.obj $(D)\ctapx2.obj $(D)\ctapx3.obj $(D)\ctapx4.obj \
  115.             $(D)\ctsset.obj $(D)\ctisam.obj $(D)\ctvrec.obj \
  116.             $(D)\ctvrcu.obj $(D)\ctism2.obj $(D)\ctestm.obj \
  117.             $(D)\ctismc.obj $(D)\ctismo.obj $(D)\cticre.obj \
  118.             $(D)\ctiopn.obj $(D)\ctcomp.obj \
  119.             $(D)\cticls.obj $(D)\ctifil.obj \
  120.             $(D)\ctismu.obj $(D)\ctclb2.obj
  121.     cd $(D)
  122.     if exist $(LN).bak del $(LN).bak
  123.     if exist $(ALIB) ren $(ALIB) $(LN).bak
  124.     echo $(ALIB) > lrsp
  125.     echo y >> lrsp
  126.     echo +ctappx+ctapx2 & >> lrsp
  127.     echo +ctsset+ctisam+ctvrec+ctvrcu+ctism2 & >> lrsp
  128.     echo +ctismc+ctismo+cticre+ctestm & >> lrsp
  129.     echo +ctiopn+ctcomp & >> lrsp
  130.     echo +cticls+ctifil & >> lrsp
  131.     echo +ctismu+ctapx3+ctapx4 & >> lrsp
  132.     echo +ctclb2 >> lrsp
  133.     echo $(LN).m >> lrsp
  134.     echo $(ALIB) >> lrsp
  135.     lib @lrsp
  136.     del lrsp
  137.     cd ..
  138.  
  139. #######################################
  140. # compile environment dependent files #
  141. #######################################
  142.  
  143. $(D)\ctamsgx.obj: ctamsgx.c ctaxit.h
  144.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  145.  
  146. $(D)\ctamsgxa.obj: ctamsgxa.asm
  147.     $(ASM) $*/ml/D$(AM);
  148.     copy $*.obj $(D)\*.*
  149.     del $*.obj
  150.  
  151. $(D)\ctnbios.obj: ctnbios.c
  152.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  153.  
  154. $(D)\ctaxit.obj: ctaxit.asm
  155.     $(ASM) $*/ml/D$(AM);
  156.     copy $*.obj $(D)\*.*
  157.     del $*.obj
  158.  
  159. ####################################
  160. # compile/link server stop utility #
  161. # CTSTOPX                          #
  162. ####################################
  163.  
  164. $(D)\ctstop.obj: ..\ctstop.c
  165.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  166.  
  167. $(D)\ctstopx.exe: $(D)\ctstop.obj $(DMSG) $(D)\ctclb2.obj
  168.     cd $(D)
  169.     $(LINK) ctstop$(MSG)+ctclb2,ctstopx;
  170.     cd ..
  171.  
  172. ####################################
  173. # compile/link server stat utility #
  174. # CTSTATX                          #
  175. ####################################
  176.  
  177. $(D)\ctstat.obj: ..\ctstat.c
  178.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  179.  
  180. $(D)\ctstatx.exe: $(D)\ctstat.obj $(DMSG) $(D)\ctclb2.obj
  181.     cd $(D)
  182.     $(LINK) ctstat$(MSG)+ctclb2,ctstatx;
  183.     cd ..
  184.  
  185. ###################################
  186. # compile/link example programs   #
  187. # CTEXMCX CTEXMGX CTVXMGX CTIXMGX #
  188. ###################################
  189.  
  190. $(D)\ctexmc.obj: ..\ctexmc.c
  191.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  192.  
  193. $(D)\ctexmcx.exe: $(D)\ctexmc.obj $(DMSG) $(D)\$(ALIB)
  194.     cd $(D)
  195.     $(LINK) ctexmc$(MSG),ctexmcx,,$(LN);
  196.     cd ..
  197.  
  198. $(D)\ctexmg.obj: ..\ctexmg.c
  199.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  200.  
  201. $(D)\ctexmgx.exe: $(D)\ctexmg.obj $(DMSG) $(D)\$(ALIB)
  202.     cd $(D)
  203.     $(LINK) ctexmg$(MSG),ctexmgx,,$(LN);
  204.     cd ..
  205.  
  206. $(D)\ctvxmg.obj: ..\ctvxmg.c
  207.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  208.  
  209. $(D)\ctvxmgx.exe: $(D)\ctvxmg.obj $(DMSG) $(D)\$(ALIB)
  210.     cd $(D)
  211.     $(LINK) ctvxmg$(MSG),ctvxmgx,,$(ALIB);
  212.     cd ..
  213.  
  214. $(D)\ctixmg.obj: ..\ctixmg.c
  215.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  216.  
  217. $(D)\ctixmgx.exe: $(D)\ctixmg.obj $(DMSG) $(D)\$(ALIB)
  218.     cd $(D)
  219.     $(LINK) ctixmg$(MSG),ctixmgx,,$(ALIB);
  220.     cd ..
  221.  
  222.