# 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..\..\h
CFLAGS= /W3 /ASw /G2 /Gs /Oil /nologo ${INCLUDES}
AFLAGS = /ML /Z /T ${INCLUDES}
CC     = cl
ASM    = masm

load.exe: load.obj l_pglue.obj mbinit.obj arp.obj pkglue.obj packet.obj dump.obj
	link /nologo /nod /noi /map load+l_pglue+mbinit+pkglue+arp+packet+dump+c:\os386\aiacode\rmkint+c:\os386\aiacode\memory;

pglue.obj: pglue.asm
	$(ASM) $(AFLAGS) /DEXE $*,$*,$*;

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

pglue.exe: pglue.obj mbinit.obj arp.obj pkglue.obj packet.obj
	link /nologo /nod /map pglue+mbinit+pkglue+arp+packet;

clean:
	rm -f *.lst *.obj *.bak

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

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