.SUFFIXES: .def
# 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 = /Ih
CFLAGS= /W3 /AS /G2 /Gs /Oil /nologo $(INCLUDES)
ASFLAGS = /ML /Z /T $(INCLUDES)
CC     = cl
ASM    = masm
LIB = lib

#TCPOBJS1=protinit.obj
#TCPOBJS2=tools.obj route.obj dlayer.obj bootp.obj

TCPOBJS1=packet.obj pkglue.obj arp.obj ip.obj icmp.obj udp.obj tcp.obj route.obj
TCPOBJS2=io.obj tools.obj sleep.obj support.obj config.obj net.obj os.obj bootp.obj rarp.obj
TCPOBJS=$(TCPOBJS1) $(TCPOBJS2)

all:	sntcp.net 

sntcp.net: init.obj main.obj $(TCPOBJS) sntcp.lnk
	link /nologo /nod /noi /map @sntcp.lnk;

install: sntcp.net
	copy sntcp.net c:\microx\lib\sntcp.net

clean:
	rm -f *.lst *.map *.obj *.bak $(TCPLIB)
	rm -f sntcp.net

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

.c.def: 
	$(CC) $(CFLAGS) /Zg $*.c > $*.def

.asm.obj:
	$(ASM) $(ASFLAGS) $*
