comparison Makefile.in @ 1455:4afde04f0607 fuzz

merge up to date
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jan 2018 22:46:07 +0800
parents d201105df2ed 7dddc4dd7063
children a90fdd2d2ed8
comparison
equal deleted inserted replaced
1450:5b25d86b865b 1455:4afde04f0607
1 # This Makefile is for Dropbear SSH Server and Client 1 # This Makefile is for Dropbear SSH Server and Client
2 # @configure_input@ 2 # @configure_input@
3 3
4 # invocation: 4 # invocation:
5 # make PROGRAMS="dropbear dbclient scp" MULTI=1 STATIC=1 SCPPROGRESS=1 5 # make PROGRAMS="dropbear dbclient scp" MULTI=1 SCPPROGRESS=1
6 # 6 #
7 # to make a multiple-program statically linked binary "staticdropbearmulti". 7 # to make a multiple-program binary "dropbearmulti".
8 # This example will include dropbear, scp, dropbearkey, dropbearconvert, and 8 # This example will include dropbear, scp, dropbearkey, dropbearconvert, and
9 # dbclient functionality, and includes the progress-bar functionality in scp. 9 # dbclient functionality, and includes the progress-bar functionality in scp.
10 # Hopefully that seems intuitive.
11 10
12 ifndef PROGRAMS 11 ifndef PROGRAMS
13 PROGRAMS=dropbear dbclient dropbearkey dropbearconvert 12 PROGRAMS=dropbear dbclient dropbearkey dropbearconvert
14 endif 13 endif
15 14
33 signkey.o rsa.o dbrandom.o \ 32 signkey.o rsa.o dbrandom.o \
34 queue.o \ 33 queue.o \
35 atomicio.o compat.o fake-rfc2553.o \ 34 atomicio.o compat.o fake-rfc2553.o \
36 ltc_prng.o ecc.o ecdsa.o crypto_desc.o \ 35 ltc_prng.o ecc.o ecdsa.o crypto_desc.o \
37 dbmalloc.o \ 36 dbmalloc.o \
38 gensignkey.o gendss.o genrsa.o 37 gensignkey.o gendss.o genrsa.o
39 38
40 SVROBJS=svr-kex.o svr-auth.o sshpty.o \ 39 SVROBJS=svr-kex.o svr-auth.o sshpty.o \
41 svr-authpasswd.o svr-authpubkey.o svr-authpubkeyoptions.o svr-session.o svr-service.o \ 40 svr-authpasswd.o svr-authpubkey.o svr-authpubkeyoptions.o svr-session.o svr-service.o \
42 svr-chansession.o svr-runopts.o svr-agentfwd.o svr-main.o svr-x11fwd.o\ 41 svr-chansession.o svr-runopts.o svr-agentfwd.o svr-main.o svr-x11fwd.o\
43 svr-tcpfwd.o svr-authpam.o 42 svr-tcpfwd.o svr-authpam.o
97 LIBS+=@LIBS@ 96 LIBS+=@LIBS@
98 LDFLAGS=@LDFLAGS@ 97 LDFLAGS=@LDFLAGS@
99 98
100 EXEEXT=@EXEEXT@ 99 EXEEXT=@EXEEXT@
101 100
101 STATIC=@STATIC@
102
102 # whether we're building client, server, or both for the common objects. 103 # whether we're building client, server, or both for the common objects.
103 # evilness so we detect 'dropbear' by itself as a word 104 # evilness so we detect 'dropbear' by itself as a word
104 space:= $(empty) $(empty) 105 space:= $(empty) $(empty)
105 ifneq (,$(strip $(foreach prog, $(PROGRAMS), $(findstring ZdropbearZ, Z$(prog)Z)))) 106 ifneq (,$(strip $(foreach prog, $(PROGRAMS), $(findstring ZdropbearZ, Z$(prog)Z))))
106 CFLAGS+= -DDROPBEAR_SERVER 107 CFLAGS+= -DDROPBEAR_SERVER
118 ifeq ($(STATIC), 1) 119 ifeq ($(STATIC), 1)
119 LDFLAGS+=-static 120 LDFLAGS+=-static
120 endif 121 endif
121 122
122 ifeq ($(MULTI), 1) 123 ifeq ($(MULTI), 1)
123 TARGETS=dropbearmulti 124 TARGETS=dropbearmulti$(EXEEXT)
124 else 125 else
125 TARGETS=$(PROGRAMS) 126 TARGETS=$(PROGRAMS)
126 endif 127 endif
127 128
128 # for the scp progress meter. The -D doesn't affect anything else. 129 # for the scp progress meter. The -D doesn't affect anything else.
135 strip: $(TARGETS) 136 strip: $(TARGETS)
136 $(STRIP) $(addsuffix $(EXEEXT), $(TARGETS)) 137 $(STRIP) $(addsuffix $(EXEEXT), $(TARGETS))
137 138
138 install: $(addprefix inst_, $(TARGETS)) 139 install: $(addprefix inst_, $(TARGETS))
139 140
140 insmultidropbear: dropbearmulti 141 insmultidropbear: dropbearmulti$(EXEEXT)
141 $(INSTALL) -d $(DESTDIR)$(sbindir) 142 $(INSTALL) -d $(DESTDIR)$(sbindir)
142 -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 143 -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT)
143 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 144 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT)
144 $(INSTALL) -d $(DESTDIR)$(mandir)/man8 145 $(INSTALL) -d $(DESTDIR)$(mandir)/man8
145 $(INSTALL) -m 644 $(srcdir)/dropbear.8 $(DESTDIR)$(mandir)/man8/dropbear.8 146 $(INSTALL) -m 644 $(srcdir)/dropbear.8 $(DESTDIR)$(mandir)/man8/dropbear.8
146 147
147 insmulti%: dropbearmulti 148 insmulti%: dropbearmulti$(EXEEXT)
148 $(INSTALL) -d $(DESTDIR)$(bindir) 149 $(INSTALL) -d $(DESTDIR)$(bindir)
149 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) 150 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT)
150 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) 151 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT)
151 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 152 $(INSTALL) -d $(DESTDIR)$(mandir)/man1
152 if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi 153 if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi
222 objdump -t dropbear|grep ".text"|cut -d "." -f 2|sort -rn 223 objdump -t dropbear|grep ".text"|cut -d "." -f 2|sort -rn
223 224
224 clean: ltc-clean ltm-clean thisclean 225 clean: ltc-clean ltm-clean thisclean
225 226
226 thisclean: 227 thisclean:
227 -rm -f dropbear dbclient dropbearkey dropbearconvert scp scp-progress \ 228 -rm -f dropbear$(EXEEXT) dbclient$(EXEEXT) dropbearkey$(EXEEXT) \
228 dropbearmulti *.o *.da *.bb *.bbg *.prof 229 dropbearconvert$(EXEEXT) scp$(EXEEXT) scp-progress$(EXEEXT) \
230 dropbearmulti$(EXEEXT) *.o *.da *.bb *.bbg *.prof
229 231
230 distclean: clean tidy 232 distclean: clean tidy
231 -rm -f config.h 233 -rm -f config.h
232 -rm -f Makefile 234 -rm -f Makefile
233 235