comparison Makefile.in @ 4:fe6bca95afa7

Makefile.in contains updated files required
author Matt Johnston <matt@ucc.asn.au>
date Tue, 01 Jun 2004 02:46:09 +0000
parents
children 7f77962de998
comparison
equal deleted inserted replaced
-1:000000000000 4:fe6bca95afa7
1 LTC=libtomcrypt/libtomcrypt.a
2 LTM=libtommath/libtommath.a
3
4 COMMONOBJS=dbutil.o common-session.o common-packet.o common-algo.o buffer.o \
5 common-kex.o dss.o bignum.o \
6 signkey.o rsa.o random.o common-channel.o \
7 common-chansession.o queue.o termcodes.o runopts.o \
8 loginrec.o atomicio.o x11fwd.o agentfwd.o localtcpfwd.o compat.o \
9 remotetcpfwd.o tcpfwd.o
10
11 SVROBJS=svr-kex.o svr-packet.o svr-algo.o svr-auth.o sshpty.o \
12 svr-authpasswd.o svr-authpubkey.o svr-session.o svr-service.o \
13 svr-chansession.o svr-runopts.o svr-agentfwd.o
14
15 CLIOBJS=
16
17 OBJS=$(COMMONOBJS) $(SVROBJS)
18
19 DROPBEAROBJS=main.o
20
21 DROPBEARKEYOBJS=dropbearkey.o gendss.o genrsa.o
22
23 CONVERTOBJS=dropbearconvert.o keyimport.o
24
25 SCPOBJS=scp.o progressmeter.o atomicio.o scpmisc.o
26
27 HEADERS=options.h dbutil.h session.h packet.h algo.h ssh.h buffer.h kex.h \
28 dss.h bignum.h signkey.h rsa.h random.h service.h auth.h authpasswd.h \
29 debug.h channel.h chansession.h debug.h config.h queue.h sshpty.h \
30 termcodes.h gendss.h genrsa.h authpubkey.h runopts.h includes.h \
31 loginrec.h atomicio.h x11fwd.h agentfwd.h localtcpfwd.h compat.h \
32 remotetcpfwd.h tcpfwd.h
33
34 ALLOBJS=$(OBJS) $(DROPBEARKEYOBJS) $(DROPBEAROBJS)
35
36 [email protected]@
37 exec_prefix=${prefix}
38 bindir=${exec_prefix}/bin
39 sbindir=${exec_prefix}/sbin
40
41 [email protected]@
42 [email protected]@
43 [email protected]@
44 [email protected]@
45 [email protected]@
46 [email protected]@
47 CFLAGS=-Ilibtomcrypt @[email protected]
48 LIBS=$(LTC) $(LTM) @[email protected]
49 [email protected]@
50
51 # these are exported so that libtomcrypt's makefile will use them
52 export CC
53 export CFLAGS
54 export RANLIB AR STRIP
55
56 all: dropbear dropbearkey dropbearconvert
57 @echo
58 @echo Run \"make strip\" if you want stripped binaries,
59 @echo or \"make install\" to install to ${prefix}
60
61 strip:
62 -$(STRIP) dropbear
63 -$(STRIP) dropbearkey
64 -$(STRIP) dropbearconvert
65
66 install: all
67 $(INSTALL) -d -m 755 $(DESTDIR)$(sbindir)
68 $(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
69 $(INSTALL) -m 755 dropbear $(DESTDIR)$(sbindir)
70 $(INSTALL) -m 755 dropbearkey $(DESTDIR)$(bindir)
71 $(INSTALL) -m 755 dropbearconvert $(DESTDIR)$(bindir)
72 # chown might fail, so do it separately to the install
73 -chown root $(DESTDIR)$(sbindir)/dropbear
74 -chgrp 0 $(DESTDIR)$(sbindir)/dropbear
75 -chown root $(DESTDIR)$(bindir)/dropbearkey
76 -chgrp 0 $(DESTDIR)$(bindir)/dropbearkey
77 -chown root $(DESTDIR)$(bindir)/dropbearconvert
78 -chgrp 0 $(DESTDIR)$(bindir)/dropbearconvert
79
80
81 static: dropbear-static dropbearkey-static dropbearconvert-static
82
83 $(ALLOBJS): $(HEADERS) Makefile
84
85 dropbear: $(DROPBEAROBJS) $(OBJS) $(HEADERS) Makefile $(LTC) $(LTM)
86 $(LD) $(LDFLAGS) -o dropbear $(DROPBEAROBJS) $(OBJS) $(LIBS)
87
88 dropbear-static: $(DROPBEAROBJS) $(OBJS) $(HEADERS) Makefile $(LTC) $(LTM)
89 $(LD) $(LDFLAGS) -o staticdropbear $(DROPBEAROBJS) $(OBJS) $(LIBS) -static
90
91 dropbearkey: $(OBJS) $(HEADERS) Makefile $(DROPBEARKEYOBJS) $(LTC) $(LTM)
92 $(LD) $(LDFLAGS) -o dropbearkey $(DROPBEARKEYOBJS) \
93 $(OBJS) $(LIBS)
94
95 dropbearkey-static: $(OBJS) $(HEADERS) Makefile $(DROPBEARKEYOBJS) $(LTC) $(LTM)
96 $(LD) $(LDFLAGS) -o staticdropbearkey $(DROPBEARKEYOBJS) \
97 $(OBJS) $(LIBS) -static
98
99 dropbearconvert: $(OBJS) $(HEADERS) Makefile $(CONVERTOBJS) $(LTC) $(LTM)
100 $(LD) $(LDFLAGS) -o dropbearconvert $(CONVERTOBJS) $(OBJS) $(LIBS)
101
102 dropbearconvert-static: $(OBJS) $(HEADERS) Makefile $(CONVERTOBJS) $(LTC) $(LTM)
103 $(LD) $(LDFLAGS) -o staticdropbearconvert $(CONVERTOBJS) $(OBJS) $(LIBS) \
104 -static
105
106 multi: dropbearmulti
107
108 dropbearmulti: $(HEADERS) $(OBJS) $(LTC) $(LTM) $(CONVERTOBJS) \
109 $(DROPBEARKEYOBJS) $(DROPBEAROBJS) dbmulti.o
110 $(LD) $(LDFLAGS) -o dropbearmulti $(OBJS) $(LTM) $(LTM) $(CONVERTOBJS) \
111 $(DROPBEARKEYOBJS) $(DROPBEAROBJS) dbmulti.o $(LIBS)
112 @echo "You should now create symlinks to the programs you have included"
113 @echo "ie 'ln -s dropbearmulti dropbear'"
114
115 dropbearmultistatic: $(HEADERS) $(OBJS) $(LTC) $(LTM) $(CONVERTOBJS) \
116 $(DROPBEARKEYOBJS) $(DROPBEAROBJS) dbmulti.o
117 $(LD) $(LDFLAGS) -o staticdropbearmulti $(OBJS) $(LTM) $(LTM) \
118 $(CONVERTOBJS) $(DROPBEARKEYOBJS) $(DROPBEAROBJS) \
119 dbmulti.o $(LIBS) -static
120 @echo "You should now create symlinks to the programs you have included"
121 @echo "ie 'ln -s dropbearmultistatic dropbear'"
122
123 stripmulti: dropbearmulti
124 -$(STRIP) dropbearmulti
125
126
127 scp: $(SCPOBJS) Makefile
128 $(LD) $(LDFLAGS) -o [email protected] $(SCPOBJS)
129
130 # gnumake before 3.80 is broken. So this is uglyish
131 scp-progress: atomicio.o scpmisc.o $(HEADERS) Makefile
132 -rm scp.o progressmeter.o
133 $(MAKE) CFLAGS="$(CFLAGS) -DPROGRESS_METER" scp.o progressmeter.o
134 $(LD) $(LDFLAGS) -o [email protected] $(SCPOBJS)
135
136 scpstatic: $(SCPOBJS) $(HEADERS) Makefile
137 $(LD) $(LDFLAGS) -o [email protected] $(SCPOBJS) -static
138
139 $(LTC): $(HEADERS)
140 cd libtomcrypt && $(MAKE) clean && $(MAKE)
141
142 $(LTM): $(HEADERS)
143 cd libtommath && $(MAKE)
144
145 ltc-clean:
146 cd libtomcrypt && $(MAKE) clean
147
148 ltm-clean:
149 cd libtommath && $(MAKE) clean
150
151 sizes: dropbear
152 objdump -t dropbear|grep ".text"|cut -d "." -f 2|sort -rn
153
154 clean: ltc-clean ltm-clean
155 -rm -f dropbear dropbear dropbearkey staticdropbear staticdropbearkey
156 -rm -f dropbearconvert staticdropbearconvert scp scp-progress scpstatic
157 -rm -f dropbearmulti dropbearmultistatic
158 -rm -f *.o *.da *.bb *.bbg *.prof
159
160 distclean: clean tidy
161 -rm -f Makefile config.h
162
163 tidy:
164 -rm -f *~ *.gcov */*~