home *** CD-ROM | disk | FTP | other *** search
- #
- # Microsoft 5.1 makefile for NCSA Telnet 2.3
- #
-
- I = ..\include
- #CC = CL /c /AL /DMSC /DFTP /I$(I) /W3 # for making more portable versions
- CC = CL /c /AL /DMSC /DFTP /I$(I) /Ot /Gs /W3 # for making more portable versions, with the best optimization
- #CC = CL /c /AL /DMSC /DFTP /DMEMORY_DEBUG /I$(I) /Ox /W3 # for debugging memory errors (re-compile the whole source)
- #CC = CL /c /AL /DMSC /DFTP /I$(I) /G2 /Ox /W3 # for making versions which only need to run on 80286s
- #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
- #CC = CL /c /AL /DMSC /DFTP /I$(I) /Zg # for generating function declarations
- LINKER = link # Microsoft's linker
- #LINKER = rtlink # for RTLink
- #LINKLINE= test14+int14+memdebug,test14,nul,tcp+sess+enet+common ; # Microsoft link line
- #LINKLINE= start14+int14+timer+memdebug+ncsaio,net14,net14,tcp+sess+enet+common ; # Microsoft link line
- LINKLINE= start14+int14+memdebug+ncsaio+netutils,net14,net14,tcp+sess+enet+common ; # Microsoft link line
- #LINKLINE= # no link line for RTLink (all in telnet.lnk)
- #LINK = /ST:16384 /CO /DOSSEG # for debugging
- #LINK = /ST:4096 /E /F /PACK /DOSSEG # for final versions
- #LINK = /ST:4096 /E /F /PACKC /DOSSEG # for final versions
- LINK = /ST:4096 /E /F /PACKC # for final versions
- #LINK = @telnet.lnk # for rtlink
-
- engine\netutils.obj: engine\netutils.c
- cd engine
- $(CC) netutils.c
- copy netutils.obj ..\lib
- cd ..
- lib lib\common.lib -+engine\netutils ;
-
- net\enet\net.obj : net\enet\net.c include\protocol.h include\data.h
- cd net\enet
- $(CC) /I..\..\include net.c
- cd ..\..
- lib lib\enet.lib -+net\enet\net ;
-
- engine\ip.obj : engine\ip.c include\protocol.h include\data.h
- cd engine
- $(CC) ip.c
- cd ..
- lib lib\tcp.lib -+engine\ip ;
-
- engine\bootp.obj : engine\bootp.c include\protocol.h include\data.h include\bootp.h include\windat.h include\hostform.h
- cd engine
- $(CC) bootp.c
- cd ..
- lib lib\sess.lib -+engine\bootp ;
-
- engine\user.obj : engine\user.c include\protocol.h include\data.h
- cd engine
- $(CC) user.c
- cd ..
- lib lib\tcp.lib -+engine\user ;
-
- engine\rspc.obj : engine\rspc.c include\windat.h include\vskeys.h include\whatami.h
- cd engine
- $(CC) rspc.c
- cd ..
- lib lib\telnet.lib -+engine\rspc ;
-
- engine\tools.obj : engine\tools.c include\protocol.h include\data.h
- cd engine
- $(CC) tools.c
- cd ..
- lib lib\tcp.lib -+engine\tools ;
-
- engine\udp.obj : engine\udp.c include\protocol.h include\data.h
- cd engine
- $(CC) udp.c
- cd ..
- lib lib\tcp.lib -+engine\udp ;
-
- engine\arp.obj : engine\arp.c include\protocol.h include\data.h
- cd engine
- $(CC) arp.c
- cd ..
- lib lib\tcp.lib -+engine\arp;
-
- engine\domain.obj : engine\domain.c include\protocol.h include\data.h
- cd engine
- $(CC) domain.c
- cd ..
- lib lib\tcp.lib -+engine\domain ;
-
- engine\bkgr.obj : engine\bkgr.c include\hostform.h include\whatami.h
- cd engine
- $(CC) bkgr.c
- cd ..
- lib lib\sess.lib -+engine\bkgr ;
-
- engine\util.obj : engine\util.c include\whatami.h include\hostform.h
- cd engine
- $(CC) util.c
- cd ..
- lib lib\sess.lib -+engine\util ;
-
- engine\tcp.obj : engine\tcp.c include\protocol.h include\data.h
- cd engine
- $(CC) tcp.c
- cd ..
- lib lib\tcp.lib -+engine\tcp ;
-
- engine\pcutil.obj : engine\pcutil.c include\whatami.h
- cd engine
- $(CC) pcutil.c
- cd ..
- lib lib\sess.lib -+engine\pcutil ;
-
- engine\protinit.obj : engine\protinit.c include\protocol.h include\data.h
- cd engine
- $(CC) protinit.c
- cd ..
- lib lib\tcp.lib -+engine\protinit ;
-
- int14\start14.obj : int14\start14.c
- cd int14
- $(CC) start14.c
- copy start14.obj ..\lib
- cd ..
-
- #int14\test14.obj : int14\test14.c
- # cd int14
- # $(CC) test14.c
- # copy test14.obj ..\lib
- # cd ..
-
- int14\int14.obj : int14\int14.asm
- cd int14
- masm /DMicrosoft int14;
- copy int14.obj ..\lib
- cd ..
-
- #int14\timer.obj : int14\timer.asm
- # cd int14
- # masm /DMicrosoft timer;
- # copy timer.obj ..\lib
- # cd ..
-
- engine\new_con.obj : engine\new_con.c include\whatami.h include\hostform.h include\confile.h
- cd engine
- $(CC) new_con.c
- cd ..
- lib lib\common.lib -+engine\new_con ;
-
- net\enet\netbicc.obj : net\enet\netbicc.c include\protocol.h include\data.h
- cd net\enet
- $(CC) /I..\..\include netbicc.c
- cd ..\..
- lib lib\enet.lib -+net\enet\netbicc ;
-
- net\enet\netbicc2.obj : net\enet\netbicc2.asm
- cd net\enet
- masm /DMicrosoft netbicc2.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\netbicc2 ;
-
- net\enet\packet.obj : net\enet\packet.c include\windat.h include\whatami.h
- cd net\enet
- $(CC) /I..\..\include packet.c
- cd ..\..
- lib lib\enet.lib -+net\enet\packet ;
-
- net\enet\packet2.obj : net\enet\packet2.asm
- cd net\enet
- masm /DMicrosoft packet2.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\packet2 ;
-
- net\enet\dndll.obj : net\enet\dndll.c include\protocol.h include\decnet.h
- cd net\enet
- $(CC) /I..\..\include dndll.c
- cd ..\..
- lib lib\enet.lib -+net\enet\dndll ;
-
- net\enet\dndll2.obj : net\enet\dndll2.asm
- cd net\enet
- masm /DMicrosoft dndll2.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\dndll2 ;
-
- net\enet\netatt10.obj : net\enet\netatt10.asm
- cd net\enet
- masm /DMicrosoft netatt10.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\netatt10 ;
-
- net\enet\net3com.obj : net\enet\net3com.asm
- cd net\enet
- masm /DMicrosoft net3com.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net3com ;
-
- net\enet\net501.obj : net\enet\net501.asm
- cd net\enet
- masm /DMicrosoft net501.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net501 ;
-
- net\enet\nov3com.obj : net\enet\nov3com.asm
- cd net\enet
- masm /DMicrosoft nov3com.asm ;
- cd ..\..
- # lib lib\enet.lib -+net\enet\nov3com ;
-
- net\enet\net503.obj : net\enet\net503.asm
- cd net\enet
- masm /DMicrosoft net503.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net503 ;
-
- net\enet\net505.obj : net\enet\net505.asm
- cd net\enet
- masm /DMicrosoft net505.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net505 ;
-
- net\enet\net9210.obj : net\enet\net9210.asm
- cd net\enet
- masm /DMicrosoft net9210.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net9210 ;
-
- net\enet\ltalk.obj : net\enet\ltalk.c include\kip.h
- cd net\enet
- $(CC) /I..\..\include ltalk.c
- cd ..\..
- lib lib\enet.lib -+net\enet\ltalk ;
-
- net\enet\ltlisten.obj : net\enet\ltlisten.asm
- cd net\enet
- masm /DMicrosoft ltlisten.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\ltlisten ;
-
- net\enet\net523.obj : net\enet\net523.asm
- cd net\enet
- masm /DMicrosoft net523.asm ;
- cd..\..
- lib lib\enet.lib -+net\enet\net523 ;
-
- net\enet\netub.obj : net\enet\netub.asm
- cd net\enet
- masm /DMicrosoft netub.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\netub ;
-
- net\enet\net5210.obj : net\enet\net5210.asm
- cd net\enet
- masm /DMicrosoft net5210.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net5210 ;
-
- net\enet\net8003.obj : net\enet\net8003.asm
- cd net\enet
- masm /DMicrosoft net8003.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net8003 ;
-
- net\enet\net8003a.obj : net\enet\net8003a.asm
- cd net\enet
- masm /DMicrosoft net8003a.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\net8003a ;
-
- net\enet\netzyp.obj : net\enet\netzyp.asm
- cd net\enet
- masm /DMicrosoft netzyp.asm ;
- cd ..\..
- lib lib\enet.lib -+net\enet\netzyp ;
-
- engine\ipasm.obj : engine\ipasm.asm
- cd engine
- masm /DMicrosoft ipasm.asm ;
- cd ..
- lib lib\tcp.lib -+engine\ipasm ;
-
- engine\ncsaio.obj : engine\ncsaio.asm
- cd engine
- masm /DMicrosoft ncsaio ;
- copy ncsaio.obj ..\lib
- cd ..
-
- debug\memdebug.obj : debug\memdebug.c include\memdebug.h
- cd debug
- $(CC) /I..\include memdebug.c
- copy memdebug.obj ..\lib
- cd ..
-
- #net14.exe : int14\int14.obj int14\timer.obj int14\start14.obj debug\memdebug.obj lib\common.lib lib\sess.lib lib\tcp.lib lib\enet.lib
- net14.exe : int14\int14.obj int14\start14.obj debug\memdebug.obj lib\common.lib lib\sess.lib lib\tcp.lib lib\enet.lib
- cd lib
- $(LINKER) $(LINK) $(LINKLINE)
- copy net14.exe ..
- del net14.exe
- cd ..
-