home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tel2305s.zip / LPRMAKE.MSC < prev    next >
Text File  |  1992-03-29  |  9KB  |  351 lines

  1. #
  2. #   Microsoft 6.0 makefile for lpr
  3. #
  4.  
  5. I       = ..\include
  6. #CC     = CL /c /EM /AL /Gm /DLPR /DMSC /I$(I) /W3      # for making more portable versions
  7. #CC     = CL /c /EM /AL /Gm /DLPR /DMSC /I$(I) /Ox /W3  # for making more portable versions, with the best optimization
  8. #CC     = CL /c /EM /AL /Gm /DLPR /DMSC /I$(I) /Ot /Gs /W3  # for making more portable versions, with the best optimization
  9. CC     = CL /c /EM /AL /Gm /DLPR /DMSC /I$(I) /Od /Zi /W3  # for making more portable versions
  10. #CC     = CL /c /EM /AL /Gm /DLPR /DMSC /DMAL_DEBUG /I$(I) /Ox /W3   # for making more portable versions, with the best optimization
  11. #CC     = CL /c /EM /AL /Gm /DLPR /DMSC /I$(I) /G2 /Ox /W3 # for making versions which only need to run on 80286s
  12. #CC     = CL /c /EM /AL /FPi87 /Gm /DLPR /DMSC /I$(I) /G2 /Ox /W3 # for making versions which only need to run on 80286s with 80287 math coprocessors
  13. #CC     = CL /c /EM /AL /Gm /DLPR /DMSC /I$(I) /Zg  # for getting function declarations
  14. #LINK    = /E /F /PACKC /DOSSEG /ST:4096
  15. LINK    = /DOSSEG /CO /ST:4096
  16. MM      = masm /W2 /P /DMicrosoft /I..\..\include  # for assembly code files
  17.  
  18. #
  19. # First compile lpr
  20. #
  21.  
  22. lib\lpr.obj : lpr\lpr.c
  23.     cd lpr
  24.     $(CC) lpr.c
  25.     copy lpr.obj ..\lib
  26.     cd ..
  27.  
  28. lib\lp.obj : lpr\lp.c
  29.     cd lpr
  30.     $(CC) lp.c
  31.     copy lp.obj ..\lib
  32.     cd ..
  33.  
  34. lib\lpq.obj : lpr\lpq.c
  35.     cd lpr
  36.     $(CC) lpq.c
  37.     copy lpq.obj ..\lib
  38.     cd ..
  39.  
  40. lib\lprm.obj : lpr\lprm.c
  41.     cd lpr
  42.     $(CC) lprm.c
  43.     copy lprm.obj ..\lib
  44.     cd ..
  45.  
  46. #
  47. # This next set is a repeat of tmake.msc
  48. # We want to make sure the tcp/ip kernal is up to date
  49. #
  50.  
  51. net\enet\net.obj : net\enet\net.c include\protocol.h include\data.h
  52.     cd net\enet
  53.     $(CC) /I..\..\include net.c
  54.     cd ..\.. 
  55.     lib lib\enet.lib -+net\enet\net ;
  56.  
  57. net\enet\ltalk.obj : net\enet\ltalk.c include\kip.h 
  58.     cd net\enet
  59.     $(CC) /I..\..\include ltalk.c
  60.     cd ..\.. 
  61.     lib lib\enet.lib -+net\enet\ltalk ;
  62.  
  63. engine\ip.obj : engine\ip.c include\protocol.h include\data.h
  64.     cd engine
  65.     $(CC) ip.c
  66.     cd ..
  67.     lib lib\tcp.lib -+engine\ip ;
  68.  
  69. engine\bootp.obj : engine\bootp.c include\protocol.h include\data.h include\bootp.h include\windat.h include\hostform.h
  70.     cd engine
  71.     $(CC) bootp.c
  72.     cd ..
  73.     lib lib\sess.lib -+engine\bootp ;
  74.  
  75. engine\user.obj : engine\user.c include\protocol.h include\data.h
  76.     cd engine
  77.     $(CC) user.c
  78.     cd ..
  79.     lib lib\tcp.lib -+engine\user ;
  80.  
  81. #engine\rspc.obj : engine\rspc.c include\windat.h include\vskeys.h include\whatami.h
  82. #    cd engine
  83. #    $(CC) rspc.c
  84. #    copy rspc.obj ..\lib
  85. #    cd ..
  86.  
  87. engine\tools.obj : engine\tools.c include\protocol.h include\data.h
  88.     cd engine
  89.     $(CC) tools.c
  90.     cd ..
  91.     lib lib\tcp.lib -+engine\tools ;
  92.  
  93. engine\udp.obj : engine\udp.c include\protocol.h include\data.h
  94.     cd engine
  95.     $(CC) udp.c
  96.     cd ..
  97.     lib lib\tcp.lib -+engine\udp ;
  98.  
  99. engine\arp.obj : engine\arp.c include\protocol.h include\data.h
  100.     cd engine
  101.     $(CC) arp.c
  102.     cd ..
  103.     lib lib\tcp.lib -+engine\arp;
  104.  
  105. engine\domain.obj : engine\domain.c include\protocol.h include\data.h
  106.     cd engine
  107.     $(CC) domain.c
  108.     cd ..
  109.     lib lib\tcp.lib -+engine\domain ;
  110.  
  111. #engine\bkgr.obj : engine\bkgr.c include\hostform.h include\whatami.h
  112. #    cd engine
  113. #    $(CC) bkgr.c
  114. #    cd  ..
  115. #    lib lib\sess.lib -+engine\bkgr ;
  116.  
  117. engine\util.obj : engine\util.c include\whatami.h include\hostform.h
  118.     cd engine
  119.     $(CC) util.c
  120.     cd ..
  121.     lib lib\sess.lib -+engine\util ;
  122.  
  123. engine\tcp.obj : engine\tcp.c include\protocol.h include\data.h
  124.     cd engine
  125.     $(CC) tcp.c
  126.     cd ..
  127.     lib lib\tcp.lib -+engine\tcp ;
  128.  
  129. #engine\pcutil.obj : engine\pcutil.c include\whatami.h
  130. #    cd engine
  131. #    $(CC) pcutil.c
  132. #    cd ..
  133. #    lib lib\sess.lib -+engine\pcutil ;
  134.  
  135. engine\protinit.obj : engine\protinit.c include\protocol.h include\data.h
  136.     cd engine
  137.     $(CC) protinit.c
  138.     cd ..
  139.     lib lib\tcp.lib -+engine\protinit ;
  140.  
  141. #engine\look.obj : engine\look.c include\windat.h include\whatami.h include\nkeys.h include\hostform.h
  142. #    cd engine
  143. #    $(CC) look.c
  144. #    copy look.obj ..\lib
  145. #    cd ..
  146.  
  147. #engine\menu.obj : engine\menu.c include\windat.h include\whatami.h include\nkeys.h include\hostform.h
  148. #    cd engine
  149. #    $(CC) menu.c
  150. #    copy menu.obj ..\lib
  151. #    cd ..
  152.     
  153. #engine\confile.obj : engine\confile.c include\whatami.h include\hostform.h
  154. #    cd engine
  155. #    $(CC) confile.c
  156. #    cd ..
  157. #    lib lib\sess.lib -+engine\confile ;
  158.  
  159. net\enet\netbicc.obj : net\enet\netbicc.c include\protocol.h include\data.h
  160.     cd net\enet
  161.     $(CC) /I..\..\include netbicc.c
  162.     cd ..\.. 
  163.     lib lib\enet.lib -+net\enet\netbicc ;
  164.  
  165. net\enet\netbicc2.obj : net\enet\netbicc2.asm
  166.     cd net\enet
  167.     $(MM) netbicc2.asm ;
  168.     cd ..\..
  169.     lib lib\enet.lib -+net\enet\netbicc2 ;
  170.  
  171. net\enet\packet.obj : net\enet\packet.c include\windat.h include\whatami.h
  172.     cd net\enet
  173.     $(CC) /I..\..\include packet.c
  174.     cd ..\.. 
  175.     lib lib\enet.lib -+net\enet\packet ;
  176.  
  177. net\enet\packet2.obj : net\enet\packet2.asm
  178.     cd net\enet
  179.     $(MM) packet2.asm ;
  180.     cd ..\..
  181.     lib lib\enet.lib -+net\enet\packet2 ;
  182.  
  183. net\enet\dndll.obj : net\enet\dndll.c include\protocol.h include\decnet.h
  184.     cd net\enet
  185.     $(CC) /I..\..\include dndll.c
  186.     cd ..\.. 
  187.     lib lib\enet.lib -+net\enet\dndll ;
  188.  
  189. net\enet\dndll2.obj : net\enet\dndll2.asm
  190.     cd net\enet
  191.     $(MM) dndll2.asm ;
  192.     cd ..\..
  193.     lib lib\enet.lib -+net\enet\dndll2 ;
  194.  
  195. net\enet\netatt10.obj : net\enet\netatt10.asm
  196.     cd net\enet
  197.     $(MM) netatt10.asm ;
  198.     cd ..\..
  199.     lib lib\enet.lib -+net\enet\netatt10 ;
  200.  
  201. net\enet\net3com.obj : net\enet\net3com.asm
  202.     cd net\enet
  203.     $(MM) net3com.asm ;
  204.     cd ..\..
  205.     lib lib\enet.lib -+net\enet\net3com ;
  206.  
  207. net\enet\net501.obj : net\enet\net501.asm
  208.     cd net\enet
  209.     $(MM) net501.asm ;
  210.     cd ..\..
  211.     lib lib\enet.lib -+net\enet\net501 ;
  212.  
  213. net\enet\nov3com.obj : net\enet\nov3com.asm
  214.     cd net\enet
  215.     $(MM) nov3com.asm ;
  216.     cd ..\..
  217. #    lib lib\enet.lib -+net\enet\nov3com ;
  218.  
  219. net\enet\net503.obj : net\enet\net503.asm
  220.     cd net\enet
  221.     $(MM) net503.asm ;
  222.     cd ..\..
  223.     lib lib\enet.lib -+net\enet\net503 ;
  224.  
  225. net\enet\net505.obj : net\enet\net505.asm
  226.     cd net\enet
  227.     $(MM) net505.asm ;
  228.     cd ..\..
  229.     lib lib\enet.lib -+net\enet\net505 ;
  230.  
  231. net\enet\net9210.obj : net\enet\net9210.asm
  232.     cd net\enet
  233.     $(MM) net9210.asm ;
  234.     cd ..\..
  235.     lib lib\enet.lib -+net\enet\net9210 ;
  236.  
  237. net\enet\ltlisten.obj : net\enet\ltlisten.asm
  238.     cd net\enet
  239.     $(MM) ltlisten.asm ;
  240.     cd ..\..
  241.     lib lib\enet.lib -+net\enet\ltlisten ;
  242.  
  243. net\enet\net523.obj : net\enet\net523.asm
  244.     cd net\enet
  245.     $(MM) net523.asm ;
  246.     cd..\..
  247.     lib lib\enet.lib -+net\enet\net523 ;
  248.  
  249. net\enet\netub.obj : net\enet\netub.asm
  250.     cd net\enet
  251.     $(MM) netub.asm ;
  252.     cd ..\..
  253.     lib lib\enet.lib -+net\enet\netub ;
  254.     
  255. net\enet\net5210.obj : net\enet\net5210.asm
  256.     cd net\enet
  257.     $(MM) net5210.asm ;
  258.     cd ..\..
  259.     lib lib\enet.lib -+net\enet\net5210 ;
  260.  
  261. net\enet\net8003.obj : net\enet\net8003.asm
  262.     cd net\enet
  263.     $(MM) net8003.asm ;
  264.     cd ..\..
  265.     lib lib\enet.lib -+net\enet\net8003 ;
  266.  
  267. net\enet\net8003a.obj : net\enet\net8003a.asm
  268.     cd net\enet
  269.     $(MM) net8003a.asm ;
  270.     cd ..\..
  271.     lib lib\enet.lib -+net\enet\net8003a ;
  272.  
  273. net\enet\netzyp.obj : net\enet\netzyp.asm
  274.     cd net\enet
  275.     $(MM) netzyp.asm ;
  276.     cd ..\..
  277.     lib lib\enet.lib -+net\enet\netzyp ;
  278.  
  279. engine\ipasm.obj : engine\ipasm.asm
  280.     cd engine
  281.     $(MM) ipasm.asm ;
  282.     cd ..
  283.     lib lib\tcp.lib -+engine\ipasm ;
  284.  
  285. engine\ncsaio.obj : engine\ncsaio.asm
  286.     cd engine
  287.     $(MM) ncsaio ;
  288.     copy ncsaio.obj ..\lib
  289.     cd ..
  290.  
  291. debug\memdebug.obj : debug\memdebug.c include\memdebug.h
  292.     cd debug
  293.     $(CC) /I..\include memdebug.c
  294.     cd ..
  295.     lib lib\debug.lib -+debug\memdebug ;
  296.  
  297. debug\maldebug.obj : debug\maldebug.c include\maldebug.h
  298.     cd debug
  299.     $(CC) maldebug.c
  300.     cd ..
  301.     lib lib\debug.lib -+debug\maldebug ;
  302.  
  303. debug\strdebug.obj : debug\strdebug.c include\strdebug.h
  304.     cd debug
  305.     $(CC) strdebug.c
  306.     cd ..
  307.     lib lib\debug.lib -+debug\strdebug ;
  308.  
  309. #
  310. #    Make sure common.lib is up to date
  311. #
  312. engine\new_con.obj : engine\new_con.c include\whatami.h include\hostform.h include\confile.h
  313.     cd engine
  314.     $(CC) new_con.c
  315.     cd ..
  316.     lib lib\common.lib -+engine\new_con ;
  317.  
  318. engine\fakeout.obj: engine\fakeout.c include\hostform.h
  319.     cd engine
  320.     $(CC) fakeout.c
  321.     cd ..
  322.     lib lib\common.lib -+engine\fakeout ;
  323.  
  324. #
  325. #    Put it all together
  326. #
  327.  
  328. lprm.exe : lpr\lp.obj lpr\lprm.obj lib\debug.lib engine\ncsaio.obj lib\sess.lib lib\tcp.lib lib\enet.lib lib\common.lib
  329.     cd lib
  330. #    link $(LINK) lp+lprm+ncsaio,lprm,lprm,tcp+sess+enet+common+debug;
  331.     link $(LINK) lp+lprm+ncsaio+\bounds\bc4,lprm,lprm,tcp+sess+enet+common+debug;
  332.     copy lprm.exe ..
  333.     del lprm.exe
  334.     cd ..
  335.  
  336. lpq.exe : lpr\lp.obj lpr\lpq.obj lib\debug.lib engine\ncsaio.obj lib\sess.lib lib\tcp.lib lib\enet.lib lib\common.lib
  337.     cd lib
  338. #    link $(LINK) lp+lpq+ncsaio,lpq,lpq,tcp+sess+enet+common+debug;
  339.     link $(LINK) lp+lpq+ncsaio+\bounds\bc4,lpq,lpq,tcp+sess+enet+common+debug;
  340.     copy lpq.exe ..
  341.     del lpq.exe
  342.     cd ..
  343.  
  344. lpr.exe : lpr\lp.obj lpr\lpr.obj lib\debug.lib engine\ncsaio.obj lib\sess.lib lib\tcp.lib lib\enet.lib lib\common.lib
  345.     cd lib
  346. #    link $(LINK) lp+lpr+ncsaio,lpr,lpr,tcp+sess+enet+common+debug;
  347.     link $(LINK) lp+lpr+ncsaio+\bounds\bc4,lpr,lpr,tcp+sess+enet+common+debug;
  348.     copy lpr.exe ..
  349.     del lpr.exe
  350.     cd ..
  351.