#
# I must be nuts... JNOS port to Linux
# Needless to say, this is just begging for trouble
#
# Why this instead of WAMPES?  I want a nice, strict firewall between the
# packet users and the rest of the system.  Unfortunately, WAMPES spawns login
# for all incoming connects (and doesn't work too nicely with DOS versions,
# since they default to line mode and local echo) and expects the system to
# provide services such as SMTP.  Sorry guys, I won't buy it....
#
# ++bsa (bsa@kf8nh.wariat.org) 01/19/93
#

CC = gcc
RM = rm -f
AR = ar rcs

#
# Known patches are:
#
# -DNO_STRTOUL		System has no strtoul()
# -DNO_GETTOD		System uses ftime() instead of gettimeofday()
# -DNO_STRCASECMP	We must supply strcasecmp()
# -DNO_STRNCASECMP	No strncasecmp() (may not be tied to NO_STRCASECMP)
# -DLITTLE_ENDIAN	Intel byte ordering, vs. Motorola
# -DNCURSES_182_BUG	Work around ncurses 1.8.2 bug (doesn't fully work)
#
# SCO needs NO_STRTOUL, NO_GETTOD, NO_STRCASECMP, NO_STRNCASECMP, LITTLE_ENDIAN
# Linux needs LITTLE_ENDIAN
# Be aware that the non-LITTLE_ENDIAN code has not yet been tested; and there
# are *no* definitions for thread switching on such systems.
#
PATCHES = -DLITTLE_ENDIAN -DNCURSES_182_BUG -DBSAHAX
PATCHES = -DLITTLE_ENDIAN

#
# Your curses library.  Linux wants ncurses; System V wants curses; BSD wants
# curses, termcap, and major work to substitute for missing features in BSD
# curses.  (Or install ncurses.)
#
# Slackware 1.1.0 and later use the convention of the ncurses headers with the
# traditional names in /usr/include/ncurses; sources compiled for BSD curses
# compile as is, for ncurses sources use -I/usr/include/ncurses and the source
# need not be changed.  This is a Good Thing.  (If you're not using ncurses,
# you don't need the ICURSES line.)  If your ncurses isn't installed that way,
# you may want to edit curses.c to use ncurses.h instead of curses.h and use
# -I/usr/local/include and -L/usr/local/lib here, or whatever you used to
# install ncurses.
#
ICURSES = -I/usr/include/ncurses
LCURSES = -lncurses

#
# Warnings --- disable for less noise, enable for more certainty :-)  gcc will
# whine about things like partly bracketed initializers if you specify -W, but
# this can be ignored unless you're trying to port JNOS to VMS....
#
# JNOS/Linux is much cleaner in this area, but there are some portability
# warnings still (-Wtraditional) and some non-globally-prototyped functions.
# I will probably re-target ALPHA.4 to Doug Crompton's cleaned-up code instead
# of fixing these myself.
#
WARNINGS = -W -Wimplicit -Wreturn-type -Wunused -Wswitch -Wpointer-arith \
	   -Wcast-qual -Wcast-align -Waggregate-return -Wparentheses \
	   -Wuninitialized -Wformat -Wtraditional -Wconversion \
	   -Wstrict-prototypes -Wmissing-prototypes

# This is for my use in testing.  Don't worry about it unless you want to be
# able to build custom versions.
NOS = nos

# I strongly advise leaving the debugging information in, because this is NOT
# production-quality code.  -g1 instead of -g3 will make nos smaller, however,
# and leaving off -g entirely will make it a LOT smaller.
DEBUG = -g3
DBGLIB = -lg

CFLAGS = -DUNIX -O2 $(DEBUG) $(PATCHES) $(WARNINGS) $(ICURSES)

all:    $(NOS) u2j

hardware.h: unix.h
	cp unix.h hardware.h

CLIENTS= telnet.o ftpcli.o finger.o smtpcli.o hop.o \
        tip.o nntpcli.o popcli.o dialer.o rlogin.o callcli.o \
        mailcli.o pop2cli.o pop3cli.o rdate.o

SERVERS= ttylink.o ftpserv.o smisc.o smtpserv.o convers.o \
        nntpserv.o fingerd.o mboxcmd.o mailbox.o mailbox2.o mailfor.o \
        bmutil.o popserv.o forward.o tipmail.o mailutil.o \
        expire.o calldbd.o buckbook.o pop2serv.o pop3serv.o timed.o

BOOTP=	bootp.o bootpd.o bootpcmd.o bootpdip.o

INTERNET= tcpcmd.o tcpuser.o tcptimer.o tcpout.o tcpin.o \
	tcpsubr.o tcphdr.o udpcmd.o udp.o udphdr.o \
	domain.o domhdr.o ripcmd.o rip.o \
	ipcmd.o ip.o iproute.o iphdr.o \
	icmpcmd.o icmp.o icmpmsg.o icmphdr.o \
	arpcmd.o arp.o arphdr.o rarp.o \
	netuser.o rspf.o rspfcmd.o rspfhdr.o

AX25=   ax25cmd.o ax25user.o ax25.o axheard.o ax25aar.o \
	lapbtime.o lapb.o kiss.o ax25subr.o ax25hdr.o ax25mail.o

NETROM=	nrcmd.o nr4user.o nr4timer.o nr4.o nr4subr.o nr4hdr.o \
	nr3.o nrs.o nrhdr.o nr4mail.o

PPP=	asy.o ppp.o pppcmd.o pppfsm.o ppplcp.o \
	ppppap.o pppipcp.o pppdump.o \
	slhc.o slhcdump.o slip.o

NET=	ftpsubr.o sockcmd.o sockuser.o socket.o sockutil.o  \
	iface.o timer.o ttydriv.o cmdparse.o \
	mbuf.o misc.o pathname.o audit.o files.o  \
	kernel.o ksubr.o getopt.o wildmat.o lzw.o \
	getline.o devparam.o

DUMP= 	trace.o rspfdump.o \
	kissdump.o ax25dump.o arpdump.o nrdump.o rwhodump.o \
	ipdump.o icmpdump.o udpdump.o tcpdump.o ripdump.o

# at and xmodem, at least, don't really belong here....
UNIX=	unix.o unixasy.o dirutil.o at.o lcsum.o curses.o xmodem.o glob.o \
	sessmgr.o dumbcons.o rawcons.o

$(NOS): main.o config.o version.o session.o clients.a servers.a internet.a \
    net.a netrom.a ax25.a unix.a dump.a ppp.a bootp.a
	$(CC) -c $(CFLAGS) version.c
	$(CC) $(CFLAGS) -o $(NOS) main.o config.o version.o session.o \
		clients.a servers.a internet.a net.a netrom.a ax25.a unix.a \
		dump.a ppp.a bootp.a $(LCURSES) $(DBGLIB)

clean:
	$(RM) *.[oa] hardware.h

clients.a: $(CLIENTS)
	$(RM) clients.a
	$(AR) clients.a $(CLIENTS)

servers.a: $(SERVERS)
	$(RM) servers.a
	$(AR) servers.a $(SERVERS)

ppp.a: $(PPP)
	$(RM) ppp.a
	$(AR) ppp.a $(PPP)

bootp.a: $(BOOTP)
	$(RM) bootp.a
	$(AR) bootp.a $(BOOTP)

internet.a: $(INTERNET)
	$(RM) internet.a
	$(AR) internet.a $(INTERNET)

ax25.a: $(AX25)
	$(RM) ax25.a
	$(AR) ax25.a $(AX25)

netrom.a: $(NETROM)
	$(RM) netrom.a
	$(AR) netrom.a $(NETROM)

net.a: $(NET)
	$(RM) net.a
	$(AR) net.a $(NET)

dump.a: $(DUMP)
	$(RM) dump.a
	$(AR) dump.a $(DUMP)

unix.a: $(UNIX)
	$(RM) unix.a
	$(AR) unix.a $(UNIX)

arp.o : arp.c global.h config.h unixtm.h mbuf.h timer.h iface.h proc.h socket.h \
  sockaddr.h ax25.h ip.h internet.h lapb.h icmp.h session.h hardware.h ftpcli.h \
  ftp.h dirutil.h telnet.h arp.h rspf.h 
arpcmd.o : arpcmd.c global.h config.h unixtm.h mbuf.h timer.h internet.h ip.h \
  iface.h proc.h socket.h sockaddr.h ax25.h lapb.h arp.h netuser.h cmdparse.h \
  commands.h rspf.h domain.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h 
arpdump.o : arpdump.c global.h config.h unixtm.h mbuf.h arp.h iface.h proc.h \
  timer.h socket.h sockaddr.h netuser.h trace.h 
arphdr.o : arphdr.c global.h config.h unixtm.h mbuf.h arp.h iface.h proc.h timer.h \
  socket.h sockaddr.h 
asy.o : asy.c global.h config.h unixtm.h proc.h mbuf.h timer.h iface.h socket.h \
  sockaddr.h netuser.h slhc.h ip.h internet.h tcp.h unixasy.h asy.h ax25.h lapb.h \
  kiss.h pktdrvr.h ppp.h slip.h nrs.h commands.h 
at.o : at.c global.h config.h unixtm.h timer.h cmdparse.h socket.h mbuf.h proc.h \
  sockaddr.h 
audit.o : audit.c global.h config.h unixtm.h mbuf.h 
ax25.o : ax25.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h socket.h \
  sockaddr.h arp.h slip.h slhc.h ip.h internet.h tcp.h netuser.h ax25.h lapb.h \
  netrom.h nr4.h devparam.h trace.h pktdrvr.h commands.h 
ax25aar.o : ax25aar.c global.h config.h unixtm.h mbuf.h timer.h iface.h proc.h \
  socket.h sockaddr.h ax25.h ip.h internet.h lapb.h icmp.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h arp.h rip.h udp.h netuser.h cmdparse.h 
ax25cmd.o : ax25cmd.c global.h config.h unixtm.h mbuf.h timer.h proc.h iface.h \
  socket.h sockaddr.h ax25.h ip.h internet.h lapb.h cmdparse.h mailbox.h tipmail.h \
  session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h tty.h nr4.h commands.h \
  pktdrvr.h netrom.h 
ax25dump.o : ax25dump.c global.h config.h unixtm.h mbuf.h ax25.h ip.h iface.h \
  proc.h timer.h socket.h sockaddr.h internet.h lapb.h trace.h 
ax25hdr.o : ax25hdr.c global.h config.h unixtm.h mbuf.h ax25.h ip.h iface.h \
  proc.h timer.h socket.h sockaddr.h internet.h lapb.h 
ax25mail.o : ax25mail.c global.h config.h unixtm.h proc.h mbuf.h timer.h iface.h \
  socket.h sockaddr.h pktdrvr.h ax25.h ip.h internet.h lapb.h usock.h /usr/include/time.h \
  lzw.h tcp.h netuser.h udp.h netrom.h nr4.h session.h hardware.h ftpcli.h ftp.h \
  dirutil.h telnet.h mailbox.h tipmail.h ax25mail.h 
ax25subr.o : ax25subr.c global.h config.h unixtm.h mbuf.h timer.h ax25.h ip.h \
  iface.h proc.h socket.h sockaddr.h internet.h lapb.h 
ax25user.o : ax25user.c global.h config.h unixtm.h mbuf.h timer.h iface.h proc.h \
  socket.h sockaddr.h lapb.h ax25.h ip.h internet.h 
axheard.o : axheard.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h \
  socket.h sockaddr.h ax25.h ip.h internet.h lapb.h 
beta.o : beta.c 
bmutil.o : bmutil.c global.h config.h unixtm.h ftpserv.h sockaddr.h timer.h \
  smtp.h proc.h mbuf.h usock.h lzw.h tcp.h iface.h socket.h internet.h ip.h netuser.h \
  udp.h netrom.h ax25.h lapb.h nr4.h telnet.h session.h hardware.h ftpcli.h ftp.h \
  dirutil.h files.h mailbox.h tipmail.h cmdparse.h bm.h mailutil.h 
bootp.o : bootp.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h netuser.h udp.h iface.h internet.h ip.h domain.h rip.h cmdparse.h \
  bootp.h 
bootpcmd.o : bootpcmd.c global.h config.h unixtm.h cmdparse.h bootpd.h socket.h \
  mbuf.h proc.h timer.h sockaddr.h arp.h iface.h netuser.h udp.h internet.h ip.h 
bootpd.o : bootpd.c global.h config.h unixtm.h bootp.h socket.h mbuf.h proc.h \
  timer.h sockaddr.h cmdparse.h iface.h bootpd.h arp.h udp.h internet.h ip.h netuser.h 
bootpdip.o : bootpdip.c global.h config.h unixtm.h arp.h mbuf.h iface.h proc.h \
  timer.h socket.h sockaddr.h netuser.h pktdrvr.h bootpd.h 
buckbook.o : buckbook.c global.h config.h unixtm.h files.h cmdparse.h ftp.h 
callcli.o : callcli.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h netuser.h \
  commands.h tty.h 
calldbd.o : calldbd.c global.h config.h unixtm.h files.h mbuf.h socket.h proc.h \
  timer.h sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h commands.h \
  mailbox.h ax25.h ip.h iface.h internet.h lapb.h tipmail.h 
cmdparse.o : cmdparse.c global.h config.h unixtm.h proc.h mbuf.h timer.h cmdparse.h \
  session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h pktdrvr.h iface.h socket.h \
  sockaddr.h 
comment.o : comment.c 
config.o : config.c global.h config.h unixtm.h mbuf.h timer.h proc.h iface.h \
  socket.h sockaddr.h ip.h internet.h tcp.h netuser.h udp.h lapb.h ax25.h kiss.h \
  netrom.h nr4.h pktdrvr.h ppp.h slip.h slhc.h arp.h icmp.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h usock.h lzw.h cmdparse.h commands.h mailbox.h \
  tipmail.h mailcli.h daemon.h ax25mail.h nr4mail.h bootp.h rspf.h main.h trace.h 
convers.o : convers.c global.h config.h unixtm.h mailbox.h timer.h ax25.h ip.h \
  mbuf.h iface.h proc.h socket.h sockaddr.h internet.h lapb.h tipmail.h netuser.h \
  pktdrvr.h cmdparse.h usock.h lzw.h tcp.h udp.h netrom.h nr4.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h files.h commands.h 
curses.o : curses.c hardware.h global.h config.h unixtm.h proc.h mbuf.h timer.h \
  socket.h sockaddr.h tty.h session.h ftpcli.h ftp.h dirutil.h telnet.h sessmgr.h 
devparam.o : devparam.c global.h config.h unixtm.h devparam.h 
dialer.o : dialer.c global.h config.h unixtm.h mbuf.h timer.h proc.h iface.h \
  socket.h sockaddr.h netuser.h commands.h unixasy.h asy.h tty.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h cmdparse.h devparam.h icmp.h internet.h ip.h \
  files.h main.h trace.h 
dirutil.o : dirutil.c global.h config.h unixtm.h proc.h mbuf.h timer.h session.h \
  hardware.h ftpcli.h ftp.h dirutil.h telnet.h commands.h 
domain.o : domain.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h \
  timer.h sockaddr.h ip.h iface.h internet.h cmdparse.h domain.h commands.h files.h \
  getline.h 
domhdr.o : domhdr.c global.h config.h unixtm.h mbuf.h domain.h proc.h timer.h 
dumbcons.o : dumbcons.c config.h hardware.h global.h unixtm.h proc.h mbuf.h \
  timer.h socket.h sockaddr.h tty.h session.h ftpcli.h ftp.h dirutil.h telnet.h \
  sessmgr.h 
expire.o : expire.c global.h config.h unixtm.h timer.h proc.h mbuf.h bm.h mailbox.h \
  ax25.h ip.h iface.h socket.h sockaddr.h internet.h lapb.h tipmail.h smtp.h mailutil.h \
  files.h 
files.o : files.c global.h config.h unixtm.h netuser.h socket.h mbuf.h proc.h \
  timer.h sockaddr.h files.h 
finger.o : finger.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h netuser.h \
  commands.h tty.h 
fingerd.o : fingerd.c global.h config.h unixtm.h files.h mbuf.h socket.h proc.h \
  timer.h sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h commands.h \
  mailbox.h ax25.h ip.h iface.h internet.h lapb.h tipmail.h 
forward.o : forward.c global.h config.h unixtm.h bm.h mailbox.h timer.h ax25.h \
  ip.h mbuf.h iface.h proc.h socket.h sockaddr.h internet.h lapb.h tipmail.h smtp.h \
  mailutil.h cmdparse.h usock.h lzw.h tcp.h netuser.h udp.h netrom.h nr4.h files.h 
ftpcli.o : ftpcli.c global.h config.h unixtm.h mbuf.h session.h proc.h timer.h \
  hardware.h ftpcli.h ftp.h dirutil.h telnet.h cmdparse.h tty.h socket.h sockaddr.h \
  commands.h netuser.h files.h 
ftpserv.o : ftpserv.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h ftp.h ftpserv.h dirutil.h files.h commands.h cmdparse.h 
ftpsubr.o : ftpsubr.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h ftp.h ftpcli.h session.h hardware.h telnet.h dirutil.h 
getline.o : getline.c global.h config.h unixtm.h 
getopt.o : getopt.c global.h config.h unixtm.h 
glob.o : glob.c dirutil.h global.h config.h unixtm.h 
hop.o : hop.c global.h config.h unixtm.h mbuf.h usock.h /usr/include/time.h \
  lzw.h proc.h timer.h tcp.h iface.h socket.h sockaddr.h internet.h ip.h netuser.h \
  udp.h netrom.h ax25.h lapb.h nr4.h session.h hardware.h ftpcli.h ftp.h dirutil.h \
  telnet.h domain.h commands.h tty.h cmdparse.h icmp.h 
icmp.o : icmp.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h socket.h \
  sockaddr.h ip.h internet.h icmp.h session.h hardware.h ftpcli.h ftp.h dirutil.h \
  telnet.h netuser.h 
icmpcmd.o : icmpcmd.c global.h config.h unixtm.h icmp.h mbuf.h iface.h proc.h \
  timer.h socket.h sockaddr.h internet.h ip.h session.h hardware.h ftpcli.h ftp.h \
  dirutil.h telnet.h netuser.h cmdparse.h commands.h 
icmpdump.o : icmpdump.c global.h config.h unixtm.h mbuf.h internet.h netuser.h \
  socket.h proc.h timer.h sockaddr.h icmp.h iface.h ip.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h trace.h 
icmphdr.o : icmphdr.c global.h config.h unixtm.h mbuf.h internet.h ip.h iface.h \
  proc.h timer.h socket.h sockaddr.h icmp.h session.h hardware.h ftpcli.h ftp.h \
  dirutil.h telnet.h 
icmpmsg.o : icmpmsg.c global.h config.h unixtm.h 
iface.o : iface.c global.h config.h unixtm.h mbuf.h proc.h timer.h iface.h socket.h \
  sockaddr.h ip.h internet.h netuser.h ax25.h lapb.h arp.h pktdrvr.h cmdparse.h \
  commands.h nr4.h mailbox.h tipmail.h 
ip.o : ip.c global.h config.h unixtm.h mbuf.h timer.h internet.h netuser.h socket.h \
  proc.h sockaddr.h iface.h pktdrvr.h ip.h icmp.h session.h hardware.h ftpcli.h \
  ftp.h dirutil.h telnet.h 
ipcmd.o : ipcmd.c global.h config.h unixtm.h mbuf.h internet.h timer.h netuser.h \
  socket.h proc.h sockaddr.h iface.h session.h hardware.h ftpcli.h ftp.h dirutil.h \
  telnet.h ip.h cmdparse.h commands.h rip.h udp.h rspf.h domain.h pktdrvr.h 
ipdump.o : ipdump.c global.h config.h unixtm.h mbuf.h internet.h iface.h proc.h \
  timer.h socket.h sockaddr.h ip.h trace.h netuser.h 
iphdr.o : iphdr.c global.h config.h unixtm.h mbuf.h ip.h iface.h proc.h timer.h \
  socket.h sockaddr.h internet.h 
iproute.o : iproute.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h iface.h internet.h ip.h netuser.h icmp.h session.h hardware.h ftpcli.h \
  ftp.h dirutil.h telnet.h rip.h udp.h trace.h pktdrvr.h bootp.h 
kernel.o : kernel.c global.h config.h unixtm.h mbuf.h proc.h timer.h socket.h \
  sockaddr.h daemon.h hardware.h 
kiss.o : kiss.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h socket.h \
  sockaddr.h kiss.h devparam.h slip.h slhc.h ip.h internet.h tcp.h netuser.h asy.h \
  ax25.h lapb.h pktdrvr.h 
kissdump.o : kissdump.c global.h config.h unixtm.h mbuf.h kiss.h iface.h proc.h \
  timer.h socket.h sockaddr.h devparam.h ax25.h ip.h internet.h lapb.h trace.h 
ksubr.o : ksubr.c global.h config.h unixtm.h proc.h mbuf.h timer.h commands.h \
  socket.h sockaddr.h 
lapb.o : lapb.c global.h config.h unixtm.h mbuf.h timer.h ax25.h ip.h iface.h \
  proc.h socket.h sockaddr.h internet.h lapb.h netrom.h nr4.h 
lapbtime.o : lapbtime.c global.h config.h unixtm.h mbuf.h ax25.h ip.h iface.h \
  proc.h timer.h socket.h sockaddr.h internet.h lapb.h 
lcsum.o : lcsum.c global.h config.h unixtm.h ip.h mbuf.h iface.h proc.h timer.h \
  socket.h sockaddr.h internet.h 
lzw.o : lzw.c global.h config.h unixtm.h mbuf.h proc.h timer.h lzw.h usock.h \
  /usr/include/time.h tcp.h iface.h socket.h sockaddr.h internet.h ip.h netuser.h \
  udp.h netrom.h ax25.h lapb.h nr4.h session.h hardware.h ftpcli.h ftp.h dirutil.h \
  telnet.h cmdparse.h 
mailbox.o : mailbox.c global.h config.h unixtm.h timer.h proc.h mbuf.h socket.h \
  sockaddr.h usock.h lzw.h tcp.h iface.h internet.h ip.h netuser.h udp.h netrom.h \
  ax25.h lapb.h nr4.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h smtp.h \
  ftpserv.h commands.h files.h bm.h mailbox.h tipmail.h mailutil.h pktdrvr.h ax25mail.h \
  nr4mail.h cmdparse.h mailfor.h 
mailbox2.o : mailbox2.c global.h config.h unixtm.h timer.h proc.h mbuf.h socket.h \
  sockaddr.h usock.h lzw.h tcp.h iface.h internet.h ip.h netuser.h udp.h netrom.h \
  ax25.h lapb.h nr4.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h smtp.h \
  ftpserv.h commands.h files.h bm.h mailbox.h tipmail.h mailutil.h pktdrvr.h ax25mail.h \
  nr4mail.h cmdparse.h mailfor.h authent.h 
mailcli.o : mailcli.c global.h config.h unixtm.h timer.h proc.h mbuf.h socket.h \
  sockaddr.h domain.h cmdparse.h files.h netuser.h mailcli.h daemon.h mailutil.h \
  smtp.h 
mailfor.o : mailfor.c global.h config.h unixtm.h files.h dirutil.h bm.h mailbox.h \
  timer.h ax25.h ip.h mbuf.h iface.h proc.h socket.h sockaddr.h internet.h lapb.h \
  tipmail.h smtp.h mailutil.h cmdparse.h pktdrvr.h mailfor.h 
mailutil.o : mailutil.c global.h config.h unixtm.h socket.h mbuf.h proc.h timer.h \
  sockaddr.h mailutil.h smtp.h files.h 
main.o : main.c global.h config.h unixtm.h mbuf.h timer.h proc.h iface.h socket.h \
  sockaddr.h ip.h internet.h tcp.h netuser.h udp.h ax25.h lapb.h kiss.h netrom.h \
  nr4.h ftpcli.h ftp.h session.h hardware.h telnet.h dirutil.h tty.h usock.h lzw.h \
  cmdparse.h commands.h daemon.h devparam.h domain.h files.h main.h mailbox.h \
  tipmail.h remote.h trace.h mailutil.h smtp.h version.h 
mboxcmd.o : mboxcmd.c global.h config.h unixtm.h timer.h proc.h mbuf.h socket.h \
  sockaddr.h usock.h lzw.h tcp.h iface.h internet.h ip.h netuser.h udp.h netrom.h \
  ax25.h lapb.h nr4.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h smtp.h \
  ftpserv.h commands.h files.h bm.h mailbox.h tipmail.h mailutil.h pktdrvr.h ax25mail.h \
  nr4mail.h cmdparse.h mailfor.h 
mbuf.o : mbuf.c global.h config.h unixtm.h mbuf.h proc.h timer.h 
misc.o : misc.c global.h config.h unixtm.h socket.h mbuf.h proc.h timer.h sockaddr.h 
netuser.o : netuser.c global.h config.h unixtm.h netuser.h socket.h mbuf.h proc.h \
  timer.h sockaddr.h domain.h 
nntpcli.o : nntpcli.c global.h config.h unixtm.h timer.h cmdparse.h commands.h \
  socket.h mbuf.h proc.h sockaddr.h usock.h lzw.h tcp.h iface.h internet.h ip.h \
  netuser.h udp.h netrom.h ax25.h lapb.h nr4.h smtp.h mailutil.h files.h 
nntpserv.o : nntpserv.c global.h config.h unixtm.h 
nr3.o : nr3.c global.h config.h unixtm.h mbuf.h pktdrvr.h iface.h proc.h timer.h \
  socket.h sockaddr.h netuser.h arp.h slip.h slhc.h ip.h internet.h tcp.h ax25.h \
  lapb.h netrom.h nr4.h trace.h commands.h 
nr4.o : nr4.c global.h config.h unixtm.h mbuf.h timer.h ax25.h ip.h iface.h \
  proc.h socket.h sockaddr.h internet.h lapb.h netrom.h nr4.h cmdparse.h 
nr4hdr.o : nr4hdr.c global.h config.h unixtm.h mbuf.h nr4.h timer.h ax25.h ip.h \
  iface.h proc.h socket.h sockaddr.h internet.h lapb.h 
nr4mail.o : nr4mail.c global.h config.h unixtm.h proc.h mbuf.h timer.h netrom.h \
  iface.h socket.h sockaddr.h ax25.h ip.h internet.h lapb.h nr4.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h cmdparse.h commands.h mailbox.h tipmail.h \
  nr4mail.h 
nr4subr.o : nr4subr.c global.h config.h unixtm.h mbuf.h timer.h ax25.h ip.h \
  iface.h proc.h socket.h sockaddr.h internet.h lapb.h netrom.h nr4.h 
nr4timer.o : nr4timer.c global.h config.h unixtm.h mbuf.h timer.h ax25.h ip.h \
  iface.h proc.h socket.h sockaddr.h internet.h lapb.h netrom.h nr4.h 
nr4user.o : nr4user.c global.h config.h unixtm.h mbuf.h timer.h ax25.h ip.h \
  iface.h proc.h socket.h sockaddr.h internet.h lapb.h netrom.h nr4.h 
nrcmd.o : nrcmd.c config.h global.h unixtm.h mbuf.h ax25.h ip.h iface.h proc.h \
  timer.h socket.h sockaddr.h internet.h lapb.h mailbox.h tipmail.h netrom.h nr4.h \
  pktdrvr.h cmdparse.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h \
  commands.h files.h 
nrdump.o : nrdump.c global.h config.h unixtm.h mbuf.h netrom.h iface.h proc.h \
  timer.h socket.h sockaddr.h ax25.h ip.h internet.h lapb.h nr4.h trace.h 
nrhdr.o : nrhdr.c global.h config.h unixtm.h mbuf.h timer.h ax25.h ip.h iface.h \
  proc.h socket.h sockaddr.h internet.h lapb.h netrom.h nr4.h 
nrs.o : nrs.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h socket.h \
  sockaddr.h pktdrvr.h ax25.h ip.h internet.h lapb.h nrs.h asy.h trace.h commands.h 
pathname.o : pathname.c global.h config.h unixtm.h dirutil.h 
pop2cli.o : pop2cli.c global.h config.h unixtm.h timer.h proc.h mbuf.h netuser.h \
  socket.h sockaddr.h cmdparse.h files.h mailcli.h daemon.h mailutil.h smtp.h 
pop2serv.o : pop2serv.c global.h config.h unixtm.h mbuf.h cmdparse.h socket.h \
  proc.h timer.h sockaddr.h files.h smtp.h mailcli.h daemon.h dirutil.h 
pop3cli.o : pop3cli.c global.h config.h unixtm.h timer.h proc.h mbuf.h netuser.h \
  socket.h sockaddr.h cmdparse.h files.h mailcli.h daemon.h mailutil.h smtp.h 
pop3serv.o : pop3serv.c global.h config.h unixtm.h mbuf.h cmdparse.h socket.h \
  proc.h timer.h sockaddr.h files.h smtp.h dirutil.h 
popcli.o : popcli.c global.h config.h unixtm.h mbuf.h cmdparse.h proc.h timer.h \
  socket.h sockaddr.h netuser.h dirutil.h files.h 
popserv.o : popserv.c global.h config.h unixtm.h mbuf.h cmdparse.h socket.h \
  proc.h timer.h sockaddr.h files.h pop.h dirutil.h 
ppp.o : ppp.c global.h config.h unixtm.h mbuf.h proc.h timer.h iface.h socket.h \
  sockaddr.h internet.h ip.h slhc.h tcp.h netuser.h unixasy.h asy.h pktdrvr.h \
  devparam.h ppp.h pppfsm.h ppplcp.h ppppap.h pppipcp.h trace.h 
pppcmd.o : pppcmd.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h \
  socket.h sockaddr.h pktdrvr.h ppp.h pppfsm.h ppplcp.h ppppap.h pppipcp.h slhc.h \
  ip.h internet.h tcp.h netuser.h cmdparse.h 
pppdump.o : pppdump.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h \
  socket.h sockaddr.h internet.h ppp.h trace.h 
pppfsm.o : pppfsm.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h \
  socket.h sockaddr.h ppp.h pppfsm.h ppplcp.h trace.h 
pppipcp.o : pppipcp.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h \
  socket.h sockaddr.h slhc.h ip.h internet.h tcp.h netuser.h ppp.h pppfsm.h pppipcp.h \
  cmdparse.h files.h trace.h 
ppplcp.o : ppplcp.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h \
  socket.h sockaddr.h ppp.h pppfsm.h ppplcp.h ppppap.h cmdparse.h devparam.h trace.h 
ppppap.o : ppppap.c global.h config.h unixtm.h mbuf.h proc.h timer.h iface.h \
  socket.h sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h ppp.h \
  pppfsm.h ppplcp.h ppppap.h cmdparse.h files.h trace.h main.h 
rarp.o : rarp.c global.h config.h unixtm.h mbuf.h proc.h timer.h iface.h socket.h \
  sockaddr.h ax25.h ip.h internet.h lapb.h arp.h netuser.h cmdparse.h pktdrvr.h 
rawcons.o : rawcons.c hardware.h global.h config.h unixtm.h proc.h mbuf.h timer.h \
  socket.h sockaddr.h tty.h session.h ftpcli.h ftp.h dirutil.h telnet.h sessmgr.h 
rdate.o : rdate.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h netuser.h \
  commands.h tty.h cmdparse.h 
rip.o : rip.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h timer.h \
  sockaddr.h udp.h iface.h internet.h ip.h rip.h arp.h 
ripcmd.o : ripcmd.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h \
  timer.h sockaddr.h internet.h cmdparse.h iface.h udp.h ip.h rip.h commands.h 
ripdump.o : ripdump.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h \
  timer.h sockaddr.h rip.h iface.h udp.h internet.h ip.h trace.h 
rlogin.o : rlogin.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h tty.h commands.h \
  netuser.h 
rspf.o : rspf.c global.h config.h unixtm.h mbuf.h proc.h timer.h netuser.h socket.h \
  sockaddr.h internet.h pktdrvr.h iface.h ip.h ax25.h lapb.h arp.h icmp.h session.h \
  hardware.h ftpcli.h ftp.h dirutil.h telnet.h rspf.h 
rspfcmd.o : rspfcmd.c global.h config.h unixtm.h mbuf.h timer.h iface.h proc.h \
  socket.h sockaddr.h cmdparse.h netuser.h rspf.h ip.h internet.h 
rspfdump.o : rspfdump.c global.h config.h unixtm.h mbuf.h netuser.h socket.h \
  proc.h timer.h sockaddr.h internet.h ip.h iface.h rspf.h trace.h 
rspfhdr.o : rspfhdr.c global.h config.h unixtm.h mbuf.h internet.h ip.h iface.h \
  proc.h timer.h socket.h sockaddr.h rspf.h 
rwhodump.o : rwhodump.c global.h config.h unixtm.h mbuf.h trace.h iface.h proc.h \
  timer.h socket.h sockaddr.h 
session.o : session.c global.h config.h unixtm.h mbuf.h proc.h timer.h ftpcli.h \
  ftp.h session.h hardware.h telnet.h dirutil.h icmp.h iface.h socket.h sockaddr.h \
  internet.h ip.h tty.h cmdparse.h rlogin.h commands.h main.h 
sessmgr.o : sessmgr.c global.h config.h unixtm.h hardware.h proc.h mbuf.h timer.h \
  socket.h sockaddr.h tty.h session.h ftpcli.h ftp.h dirutil.h telnet.h sessmgr.h \
  cmdparse.h commands.h 
slhc.o : slhc.c global.h config.h unixtm.h mbuf.h internet.h ip.h iface.h proc.h \
  timer.h socket.h sockaddr.h tcp.h netuser.h slhc.h 
slhcdump.o : slhcdump.c global.h config.h unixtm.h mbuf.h internet.h ip.h iface.h \
  proc.h timer.h socket.h sockaddr.h slhc.h tcp.h netuser.h trace.h 
slip.o : slip.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h socket.h \
  sockaddr.h ip.h internet.h slhc.h tcp.h netuser.h asy.h slip.h trace.h 
smisc.o : smisc.c global.h config.h unixtm.h netuser.h socket.h mbuf.h proc.h \
  timer.h sockaddr.h remote.h smtp.h tcp.h iface.h internet.h ip.h nr4.h ax25.h \
  lapb.h commands.h hardware.h mailbox.h tipmail.h 
smtpcli.o : smtpcli.c global.h config.h unixtm.h mbuf.h cmdparse.h proc.h timer.h \
  socket.h sockaddr.h lzw.h usock.h tcp.h iface.h internet.h ip.h netuser.h udp.h \
  netrom.h ax25.h lapb.h nr4.h smtp.h dirutil.h commands.h session.h hardware.h \
  ftpcli.h ftp.h telnet.h files.h 
smtpserv.o : smtpserv.c global.h config.h unixtm.h mbuf.h cmdparse.h socket.h \
  proc.h timer.h sockaddr.h lzw.h usock.h tcp.h iface.h internet.h ip.h netuser.h \
  udp.h netrom.h ax25.h lapb.h nr4.h smtp.h commands.h dirutil.h mailbox.h tipmail.h \
  mailutil.h bm.h domain.h session.h hardware.h ftpcli.h ftp.h telnet.h files.h 
sockcmd.o : sockcmd.c global.h config.h unixtm.h mbuf.h proc.h timer.h lzw.h \
  usock.h /usr/include/time.h tcp.h iface.h socket.h sockaddr.h internet.h ip.h \
  netuser.h udp.h netrom.h ax25.h lapb.h nr4.h commands.h 
socket.o : socket.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h \
  timer.h sockaddr.h iface.h ip.h internet.h tcp.h udp.h ax25.h lapb.h netrom.h \
  nr4.h lzw.h usock.h 
sockuser.o : sockuser.c global.h config.h unixtm.h mbuf.h proc.h timer.h socket.h \
  sockaddr.h lzw.h usock.h /usr/include/time.h tcp.h iface.h internet.h ip.h netuser.h \
  udp.h netrom.h ax25.h lapb.h nr4.h session.h hardware.h ftpcli.h ftp.h dirutil.h \
  telnet.h 
sockutil.o : sockutil.c global.h config.h unixtm.h mbuf.h netuser.h socket.h \
  proc.h timer.h sockaddr.h usock.h /usr/include/time.h lzw.h tcp.h iface.h internet.h \
  ip.h udp.h netrom.h ax25.h lapb.h nr4.h 
tcpcmd.o : tcpcmd.c global.h config.h unixtm.h timer.h mbuf.h netuser.h socket.h \
  proc.h sockaddr.h internet.h tcp.h iface.h ip.h cmdparse.h commands.h /usr/include/ctype.h 
tcpdump.o : tcpdump.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h \
  timer.h sockaddr.h internet.h tcp.h iface.h ip.h trace.h 
tcphdr.o : tcphdr.c global.h config.h unixtm.h mbuf.h tcp.h iface.h proc.h timer.h \
  socket.h sockaddr.h internet.h ip.h netuser.h 
tcpin.o : tcpin.c global.h config.h unixtm.h timer.h mbuf.h netuser.h socket.h \
  proc.h sockaddr.h internet.h tcp.h iface.h ip.h icmp.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h 
tcpout.o : tcpout.c global.h config.h unixtm.h timer.h mbuf.h netuser.h socket.h \
  proc.h sockaddr.h internet.h tcp.h iface.h ip.h 
tcpsubr.o : tcpsubr.c global.h config.h unixtm.h timer.h mbuf.h netuser.h socket.h \
  proc.h sockaddr.h internet.h tcp.h iface.h ip.h 
tcptimer.o : tcptimer.c global.h config.h unixtm.h mbuf.h timer.h netuser.h \
  socket.h proc.h sockaddr.h internet.h tcp.h iface.h ip.h 
tcpuser.o : tcpuser.c global.h config.h unixtm.h timer.h mbuf.h netuser.h socket.h \
  proc.h sockaddr.h internet.h tcp.h iface.h ip.h icmp.h session.h hardware.h \
  ftpcli.h ftp.h dirutil.h telnet.h 
telnet.o : telnet.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h telnet.h session.h hardware.h ftpcli.h ftp.h dirutil.h tty.h commands.h \
  netuser.h 
timed.o : timed.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h session.h hardware.h ftpcli.h ftp.h dirutil.h telnet.h commands.h 
timer.o : timer.c global.h config.h unixtm.h timer.h proc.h mbuf.h commands.h \
  daemon.h hardware.h socket.h sockaddr.h 
tip.o : tip.c global.h config.h unixtm.h mbuf.h proc.h timer.h iface.h socket.h \
  sockaddr.h unixasy.h asy.h tty.h session.h hardware.h ftpcli.h ftp.h dirutil.h \
  telnet.h commands.h devparam.h 
tipmail.o : tipmail.c global.h config.h unixtm.h mbuf.h timer.h proc.h iface.h \
  socket.h sockaddr.h unixasy.h asy.h usock.h /usr/include/time.h lzw.h tcp.h \
  internet.h ip.h netuser.h udp.h netrom.h ax25.h lapb.h nr4.h telnet.h session.h \
  hardware.h ftpcli.h ftp.h dirutil.h mailbox.h tipmail.h devparam.h 
trace.o : trace.c global.h config.h unixtm.h mbuf.h iface.h proc.h timer.h socket.h \
  sockaddr.h pktdrvr.h commands.h session.h hardware.h ftpcli.h ftp.h dirutil.h \
  telnet.h trace.h cmdparse.h slip.h slhc.h ip.h internet.h tcp.h netuser.h 
ttydriv.o : ttydriv.c global.h config.h unixtm.h mbuf.h session.h proc.h timer.h \
  hardware.h ftpcli.h ftp.h dirutil.h telnet.h tty.h socket.h sockaddr.h 
ttylink.o : ttylink.c global.h config.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h telnet.h session.h hardware.h ftpcli.h ftp.h dirutil.h tty.h mailbox.h \
  ax25.h ip.h iface.h internet.h lapb.h tipmail.h commands.h 
u2j.o : u2j.c 
udp.o : udp.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h timer.h \
  sockaddr.h iface.h udp.h internet.h ip.h icmp.h session.h hardware.h ftpcli.h \
  ftp.h dirutil.h telnet.h 
udpcmd.o : udpcmd.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h \
  timer.h sockaddr.h udp.h iface.h internet.h ip.h cmdparse.h commands.h 
udpdump.o : udpdump.c global.h config.h unixtm.h mbuf.h netuser.h socket.h proc.h \
  timer.h sockaddr.h internet.h udp.h iface.h ip.h trace.h 
udphdr.o : udphdr.c global.h config.h unixtm.h mbuf.h ip.h iface.h proc.h timer.h \
  socket.h sockaddr.h internet.h udp.h netuser.h 
unix.o : unix.c hardware.h global.h config.h unixtm.h timer.h proc.h mbuf.h \
  socket.h sockaddr.h 
unixasy.o : unixasy.c global.h config.h unixtm.h mbuf.h proc.h timer.h iface.h \
  socket.h sockaddr.h asy.h unixasy.h hardware.h devparam.h 
version.o : version.c config.h global.h unixtm.h mbuf.h socket.h proc.h timer.h \
  sockaddr.h version.h commands.h 
wildmat.o : wildmat.c global.h config.h unixtm.h 
xmodem.o : xmodem.c global.h config.h unixtm.h dirutil.h timer.h socket.h mbuf.h \
  proc.h sockaddr.h mailbox.h ax25.h ip.h iface.h internet.h lapb.h tipmail.h 
