INC = ../../include/
HFILES = pkt.h et_pkt.h etc-note.h

CFLAGS = -u -DMSC -Oat -Gs -G0 -Zd -Zl -Zp1 -I$(INC)

AFLAGS = /Mx /Z

enet.obj:	enet.c $(HFILES)
	cl -c $(CFLAGS) enet.c
	lib ..\..\lib\packet-+enet;

et_arp.obj:	et_arp.c $(HFILES)
	cl -c $(CFLAGS) et_arp.c
	lib ..\..\lib\packet-+et_arp;

et_close.obj:	et_close.c $(HFILES)
	cl -c $(CFLAGS) et_close.c
	lib ..\..\lib\packet-+et_close;

et_demux.obj:	et_demux.c $(HFILES)
	cl -c $(CFLAGS) et_demux.c
	lib ..\..\lib\packet-+et_demux;

et_init.obj:	et_init.c $(HFILES)
	cl -c $(CFLAGS) et_init.c
	lib ..\..\lib\packet-+et_init;

et_int.obj:	et_int.c $(HFILES)
	cl -c $(CFLAGS) et_int.c
	lib ..\..\lib\packet-+et_int;

et_pkt.obj:	et_pkt.asm
	masm et_pkt,,nul,nul $(AFLAGS)
	lib ..\..\lib\packet-+et_pkt;

et_send.obj:	et_send.c $(HFILES)
	cl -c $(CFLAGS) et_send.c
	lib ..\..\lib\packet-+et_send;

et_stat.obj:	et_stat.c $(HFILES)
	cl -c $(CFLAGS) et_stat.c
	lib ..\..\lib\packet-+et_stat;

pdkill.exe:	pdkill.c pkt.h et_pkt.obj
		cl pdkill.c et_pkt.obj

pdstat.exe:	pdstat.c pkt.h et_pkt.obj
		cl pdstat.c et_pkt.obj

smash.exe:	smash.c pkt.h et_pkt.obj
		cl smash.c et_pkt.obj
