# Makefile for the terminal server client and server and the underlying
# TelNet library

SUBDIRS	=	libtn termnet termsrvd termnetd

all:
	set -e; for i in $(SUBDIRS); do cd $$i; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" -f $$i.mk; cd ..; done
	cp termnet/termnet ../../bin
	cp termnetd/termnetd ../../bin

clean:
	rm -f core
	set -e; for i in $(SUBDIRS); do cd $$i; $(MAKE) -f $$i.mk clean; cd ..; done

