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

  1. ######################################################################
  2. # Make applications library for c-tree application library
  3. # Invoke with MAKEAPPX.BAT
  4. #
  5. # For NET BIOS server version.
  6. #
  7. ######################################################################
  8.  
  9.  
  10. ##################
  11. # default macros #
  12. ##################
  13.  
  14. # rtree directory
  15. RTREE=..\..\rtree
  16.  
  17. # c compiler
  18. COMPILER=cl /c
  19.  
  20. # assembler
  21. ASM=masm
  22.  
  23. # c compiler model switch
  24. CM=/AS
  25.  
  26. # assemble model define
  27. AM=SMALL
  28.  
  29. # obj/exe/lib directory
  30. D=SAPP
  31.  
  32. #c compile include path
  33. P=/I .\ /I ..\ /I ..\msc /I $(RTREE)
  34.  
  35. #linker name
  36. LINK=link
  37.  
  38. #library name
  39. LN=ctalib
  40.  
  41. #full library name
  42. ALIB=$(LN).lib
  43.  
  44. #linker object file list
  45. MSG=+ctamsg+ctnbios+ctaxit/m
  46.  
  47. #make exe's dependency list
  48. DMSG=$(D)\ctamsg.obj $(D)\ctnbios.obj $(D)\ctaxit.obj
  49.  
  50. ################################
  51. # complile all library modules #
  52. ################################
  53.  
  54. # library modules
  55.  
  56. $(D)\ctappx.obj: ..\ctappx.c
  57.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  58.  
  59. $(D)\ctapx2.obj: ..\ctapx2.c
  60.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  61.  
  62. $(D)\ctapx3.obj: ..\ctapx3.c
  63.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  64.  
  65. $(D)\ctapx4.obj: ..\ctapx4.c
  66.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  67.  
  68. $(D)\ctsset.obj: ..\ctsset.c
  69.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  70.  
  71. $(D)\ctisam.obj: ..\ctisam.c
  72.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  73.  
  74. $(D)\ctvrec.obj: ..\ctvrec.c
  75.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  76.  
  77. $(D)\ctvrcu.obj: ..\ctvrcu.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)\ctestm.obj: ..\ctestm.c
  108.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  109.  
  110. $(D)\ctclb2.obj: ..\ctclb2.c    # low level disk interface
  111.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  112.  
  113.  
  114. #####################
  115. # build the library #
  116. #####################
  117.  
  118. $(D)\$(ALIB): $(D)\ctappx.obj $(D)\ctapx2.obj $(D)\ctapx3.obj $(D)\ctapx4.obj \
  119.             $(D)\ctsset.obj $(D)\ctisam.obj $(D)\ctvrec.obj \
  120.             $(D)\ctvrcu.obj $(D)\ctism2.obj \
  121.             $(D)\ctismc.obj $(D)\ctismo.obj $(D)\cticre.obj \
  122.             $(D)\ctiopn.obj $(D)\ctcomp.obj \
  123.             $(D)\cticls.obj $(D)\ctifil.obj \
  124.             $(D)\ctismu.obj $(D)\ctestm.obj $(D)\ctclb2.obj
  125.     cd $(D)
  126.     del $(LN).bak
  127.     ren $(ALIB) $(LN).bak
  128.     echo $(ALIB) > lrsp
  129.     echo y >> lrsp
  130.     echo +ctappx+ctapx2 & >> lrsp
  131.     echo +ctsset+ctisam+ctvrec+ctvrcu+ctism2 & >> lrsp
  132.     echo +ctismc+ctismo+cticre & >> lrsp
  133.     echo +ctiopn+ctcomp & >> lrsp
  134.     echo +cticls+ctifil & >> lrsp
  135.     echo +ctismu+ctapx3+ctapx4 & >> lrsp
  136.     echo +ctestm+ctclb2 >> lrsp
  137.     echo $(LN).m >> lrsp
  138.     echo $(ALIB) >> lrsp
  139.     lib @lrsp
  140.     del lrsp
  141.     cd ..
  142.  
  143. #######################################
  144. # compile environment dependent files #
  145. #######################################
  146.  
  147. $(D)\ctamsg.obj: ctamsg.c ctaxit.h
  148.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  149.  
  150. $(D)\ctnbios.obj: ctnbios.c
  151.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) $*.c
  152.  
  153. $(D)\ctaxit.obj: ctaxit.asm
  154.     $(ASM) $*/ml/D$(AM);
  155.     copy $*.obj $(D)\*.*
  156.     del $*.obj
  157.  
  158. ####################################
  159. # compile/link server stop utility #
  160. # CTSTOP                           #
  161. ####################################
  162.  
  163. $(D)\ctstop.obj: ..\ctstop.c
  164.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  165.  
  166. $(D)\ctstop.exe: $(D)\ctstop.obj $(DMSG) $(D)\ctclb2.obj
  167.     cd $(D)
  168.     $(LINK) ctstop$(MSG)+ctclb2;
  169.     cd ..
  170.  
  171. ####################################
  172. # compile/link server stat utility #
  173. # CTSTAT                           #
  174. ####################################
  175.  
  176. $(D)\ctstat.obj: ..\ctstat.c
  177.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  178.  
  179. $(D)\ctstat.exe: $(D)\ctstat.obj $(DMSG) $(D)\ctclb2.obj
  180.     cd $(D)
  181.     $(LINK) ctstat$(MSG)+ctclb2;
  182.     cd ..
  183.  
  184. ###################################
  185. # compile/link example programs   #
  186. # CTEXMC CTEXMG CTVXMG CTIXMG     #
  187. ###################################
  188.  
  189. $(D)\ctexmc.obj: ..\ctexmc.c
  190.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  191.  
  192. $(D)\ctexmc.exe: $(D)\ctexmc.obj $(DMSG) $(D)\$(ALIB)
  193.     cd $(D)
  194.     $(LINK) ctexmc$(MSG),,,$(LN);
  195.     cd ..
  196.  
  197. $(D)\ctexmg.obj: ..\ctexmg.c
  198.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  199.  
  200. $(D)\ctexmg.exe: $(D)\ctexmg.obj $(DMSG) $(D)\$(ALIB)
  201.     cd $(D)
  202.     $(LINK) ctexmg$(MSG),,,$(LN);
  203.     cd ..
  204.  
  205. $(D)\ctvxmg.obj: ..\ctvxmg.c
  206.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  207.  
  208. $(D)\ctvxmg.exe: $(D)\ctvxmg.obj $(DMSG) $(D)\$(ALIB)
  209.     cd $(D)
  210.     $(LINK) ctvxmg$(MSG),,,$(ALIB);
  211.     cd ..
  212.  
  213. $(D)\ctixmg.obj: ..\ctixmg.c
  214.     $(COMPILER) $(P) /Fo$(D)\$*.obj $(CM) ..\$*.c
  215.  
  216. $(D)\ctixmg.exe: $(D)\ctixmg.obj $(DMSG) $(D)\$(ALIB)
  217.     cd $(D)
  218.     $(LINK) ctixmg$(MSG),,,$(ALIB);
  219.     cd ..
  220.  
  221.