6
#CXXFLAGS:=$(patsubst -O2, -g, $(CXXFLAGS))
9
CXXFLAGS += -DUSE_TERMIO -DKLUDGELINEMODE -DAUTHENTICATE -DUSE_SSL \
10
-I/usr/include/openssl -I../
11
LIBTELNET = ../libtelnet/libtelnet.a
12
LIBS += $(LIBTERMCAP) $(LIBTELNET) -lssl -lcrypto
14
SRCS = commands.cc main.cc network.cc ring.cc sys_bsd.cc telnet.cc \
15
terminal.cc tn3270.cc utilities.cc genget.cc environ.cc netlink.cc \
18
OBJS = $(patsubst %.cc, %.o, $(SRCS))
20
telnet: $(OBJS) $(LIBTELNET)
21
$(CXX) $(LDFLAGS) $^ $(LIBS) -o $@
25
$(CXX) $(CXXFLAGS) -MM $(SRCS) >depend.mk
28
install -m$(BINMODE) telnet $(INSTALLROOT)$(BINDIR)/telnet-ssl
29
install -m$(MANMODE) telnet.1 $(INSTALLROOT)$(MANDIR)/man1/telnet-ssl.1