comparison Makefile.in @ 33:f789045062e6

Progressing client support
author Matt Johnston <matt@ucc.asn.au>
date Tue, 27 Jul 2004 16:30:46 +0000
parents 8fd0cdbb5b1b
children 0913e2ee3545
comparison
equal deleted inserted replaced
32:8fd0cdbb5b1b 33:f789045062e6
25 SVROBJS=svr-kex.o svr-algo.o svr-auth.o sshpty.o \ 25 SVROBJS=svr-kex.o svr-algo.o svr-auth.o sshpty.o \
26 svr-authpasswd.o svr-authpubkey.o svr-session.o svr-service.o \ 26 svr-authpasswd.o svr-authpubkey.o svr-session.o svr-service.o \
27 svr-chansession.o svr-runopts.o svr-agentfwd.o svr-main.o svr-x11fwd.o 27 svr-chansession.o svr-runopts.o svr-agentfwd.o svr-main.o svr-x11fwd.o
28 28
29 CLIOBJS=cli-algo.o cli-main.o cli-auth.o cli-authpasswd.o cli-kex.o \ 29 CLIOBJS=cli-algo.o cli-main.o cli-auth.o cli-authpasswd.o cli-kex.o \
30 cli-session.o cli-service.o 30 cli-session.o cli-service.o cli-runopts.o
31 31
32 CLISVROBJS=common-session.o packet.o common-algo.o common-kex.o \ 32 CLISVROBJS=common-session.o packet.o common-algo.o common-kex.o \
33 common-channel.o common-chansession.o termcodes.o loginrec.o \ 33 common-channel.o common-chansession.o termcodes.o loginrec.o \
34 tcpfwd-direct.o tcpfwd-remote.o listener.o process-packet.o \ 34 tcpfwd-direct.o tcpfwd-remote.o listener.o process-packet.o \
35 common-runopts.o 35 common-runopts.o
138 dropbear: $(dropbearobjs) 138 dropbear: $(dropbearobjs)
139 dbclient: $(dbclientobjs) 139 dbclient: $(dbclientobjs)
140 dropbearkey: $(dropbearkeyobjs) 140 dropbearkey: $(dropbearkeyobjs)
141 dropbearconvert: $(dropbearconvertobjs) 141 dropbearconvert: $(dropbearconvertobjs)
142 142
143 dropbear dbclient dropbearkey dropbearconvert: $(HEADERS) $(LTC) $(LTM) 143 dropbear dbclient dropbearkey dropbearconvert: $(HEADERS) $(LTC) $(LTM) \
144 Makefile
144 $(LD) $(LDFLAGS) -o $(SPREFIX)$@$(EXEEXT) $($@objs) $(LIBS) 145 $(LD) $(LDFLAGS) -o $(SPREFIX)$@$(EXEEXT) $($@objs) $(LIBS)
145 146
146 # scp doesn't use the libs so is special. 147 # scp doesn't use the libs so is special.
147 scp: $(SCPOBJS) $(HEADERS) 148 scp: $(SCPOBJS) $(HEADERS) Makefile
148 $(LD) $(LDFLAGS) -o $(SPREFIX)$@$(EXEEXT) $(SCPOBJS) 149 $(LD) $(LDFLAGS) -o $(SPREFIX)$@$(EXEEXT) $(SCPOBJS)
149 150
150 151
151 # multi-binary compilation. 152 # multi-binary compilation.
152 MULTIOBJS= 153 MULTIOBJS=
153 ifeq ($(MULTI),1) 154 ifeq ($(MULTI),1)
154 MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs))) 155 MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs)))
155 CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI 156 CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
156 endif 157 endif
157 158
158 dropbearmulti: $(HEADERS) $(MULTIOBJS) $(LTC) $(LTM) 159 dropbearmulti: $(HEADERS) $(MULTIOBJS) $(LTC) $(LTM) Makefile
159 $(LD) $(LDFLAGS) -o $(SPREFIX)$@$(EXEEXT) $(MULTIOBJS) $(LIBS) 160 $(LD) $(LDFLAGS) -o $(SPREFIX)$@$(EXEEXT) $(MULTIOBJS) $(LIBS)
160 @echo 161 @echo
161 @echo "You should now create symlinks to the programs you have included" 162 @echo "You should now create symlinks to the programs you have included"
162 @echo "ie 'ln -s dropbearmulti dropbear'" 163 @echo "ie 'ln -s dropbearmulti dropbear'"
163 164
164 $(LTC): $(HEADERS) 165 $(LTC): options.h
165 cd libtomcrypt && $(MAKE) clean && $(MAKE) 166 cd libtomcrypt && $(MAKE) clean && $(MAKE)
166 167
167 $(LTM): $(HEADERS) 168 $(LTM): options.h
168 cd libtommath && $(MAKE) 169 cd libtommath && $(MAKE)
169 170
170 ltc-clean: 171 ltc-clean:
171 cd libtomcrypt && $(MAKE) clean 172 cd libtomcrypt && $(MAKE) clean
172 173