### makefile
#
#    This makefile contains the dependencies and rules for
#    Lpd, Amiga version
#
#    W.G.J. Langeveld
#
###
all:       telnetd tndopts tndhist tndmsg tndwho

telnetd:   telnetd.o shell.o handler.o parser.o myrdargs.o
	   blink from lib:c.o,telnetd.o,shell.o,handler.o,parser.o myrdargs.o \
                 to   telnetd  \
                 lib  lib:lcr.lib lib:amiga.lib ACrypt.o ND SC SD

tndopts:   tndopts.o
           blink from lib:c.o,tndopts.o \
                 to   tndopts  \
                 lib  lib:lcr.lib lib:amiga.lib ND SC SD

tndhist:   tndhist.o
           blink from lib:c.o,tndhist.o \
                 to   tndhist  \
                 lib  lib:lcr.lib lib:amiga.lib ND SC SD

tndmsg:    tndmsg.o
           blink from lib:c.o,tndmsg.o \
                 to   tndmsg  \
                 lib  lib:lcr.lib lib:amiga.lib ND SC SD

tndwho:    tndwho.o
           blink from lib:c.o,tndwho.o \
                 to   tndwho  \
                 lib  lib:lcr.lib lib:amiga.lib ND SC SD

telnetd.o: telnetd.c telnetd.h
	   lc -cwusfq -v -O -d2 -. -rr telnetd.c

handler.o: handler.c telnetd.h
	   lc -cwusfq -v -O -d2 -. -rr handler.c

shell.o:   shell.c telnetd.h
	   lc -cwusfq -v -O -d2 -. -rr shell.c

parser.o:  parser.c telnetd.h
	   lc -cwusfq -v -O -d2 -. -rr parser.c

tndopts.o: tndopts.c telnetd.h
	   lc -cwusfq -v -O -d2 -. -rr tndopts.c

tndhist.o: tndhist.c telnetd.h
	   lc -cwusfq -v -O -d2 -. -rr tndhist.c

tndmsg.o:  tndmsg.c telnetd.h
	   lc -cwusfq -v -O -d2 -. -rr tndmsg.c

tndwho.o:  tndwho.c
	   lc -cwusfq -v -O -d2 -. -rr tndwho.c

myrdargs.o: myrdargs.c
	   lc -cwusfq -v -O -d2 -. -rr myrdargs.c
