~ubuntu-branches/ubuntu/wily/netkit-telnet-ssl/wily-proposed

« back to all changes in this revision

Viewing changes to .pc/530-from_14_to_21.diff/telnet/Makefile

  • Committer: Package Import Robot
  • Author(s): Mats Erik Andersson
  • Date: 2015-04-27 23:20:22 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20150427232022-c2f04nl1gr4qyqom
Tags: 0.17.40+0.2-1
* Bring in package changes from experimental to unstable.
* Update to source version 0.17-40 of netkit-telnet.
  + debian/rules: Define and use the variable LDDEFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
all: telnet
 
2
 
 
3
include ../MCONFIG
 
4
include ../MRULES
 
5
 
 
6
#CXXFLAGS:=$(patsubst -O2, -g, $(CXXFLAGS))
 
7
 
 
8
# -DAUTHENTICATE
 
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
 
13
 
 
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 \
 
16
        glue.cc glue2.cc
 
17
 
 
18
OBJS = $(patsubst %.cc, %.o, $(SRCS))
 
19
 
 
20
telnet: $(OBJS) $(LIBTELNET)
 
21
        $(CXX) $(LDFLAGS) $^ $(LIBS) -o $@
 
22
 
 
23
include depend.mk
 
24
depend:
 
25
        $(CXX) $(CXXFLAGS) -MM $(SRCS) >depend.mk
 
26
 
 
27
install: telnet
 
28
        install -m$(BINMODE) telnet $(INSTALLROOT)$(BINDIR)/telnet-ssl
 
29
        install -m$(MANMODE) telnet.1 $(INSTALLROOT)$(MANDIR)/man1/telnet-ssl.1
 
30
 
 
31
clean:
 
32
        rm -f *.o telnet
 
33