#
# $Id$
#

CFLAGS = -g

SRC = server.c telnet.c telnet_stream.c telnet_neg.c telnet_cmd.c output.c \
	info.c params.c \
	transport.c signal.c log.c list.c util.c

OBJ = $(SRC:.c=.o)

all: server

server: $(OBJ)
	cc -o server $(OBJ)

telnet.o: telnet.c telnet.h log.h
telnet_stream.o: telnet_stream.c telnet.h log.h
telnet_neg.o: log.h

info.c: list.h log.h
log.c: server.h list.h log.h
server.c: server.h list.h log.h
signal.c: server.h list.h log.h
transport.c: server.h list.h log.h
util.c: server.h list.h log.h

clean:
	rm -rf *.o server
