home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / LPRMAKE.MSC < prev    next >
Encoding:
Text File  |  1991-07-28  |  7.7 KB  |  310 lines

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