# Author: Brad Clements, bkc@omnigate.clarkson.edu   
# 1/28/89
# This makefile requires using the make program that comes w/ turbo C 2.0
# assumes you are using masm, not tasm. Change the -E of cflags if you want
# also assumes tlink 
#
INCLUDES = /I..
CFLAGS= /W3 /AS /G2 /Gs /Oil /nologo $(INCLUDES)
AFLAGS = /ML /Z /T $(INCLUDES)
CC     = cl
ASM    = masm

all: bwtcp.net

bwtcp.net: init.obj main.obj socket.obj error.obj
	link /nologo /nod /noi /map init+main+socket+error,bwtcp.net;

.asm.obj:
	$(ASM) $(AFLAGS) $*,$*,nul;

.c.asm:
	$(CC) -c $(CFLAGS) /Fs /Fa $*.c

clean:
	-del *.obj
	-del *.def
	-del *.map
	-del *.bak
	
cleanall: clean
	-del bwtcp.net
	-del *.exe		
