~ubuntu-branches/ubuntu/lucid/openssh/lucid

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-10-10 20:10:01 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051010201001-rno2f5bno6e6wo6t
Tags: upstream-4.1p1
ImportĀ upstreamĀ versionĀ 4.1p1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile.in,v 1.263 2004/08/15 11:01:37 dtucker Exp $
 
1
# $Id: Makefile.in,v 1.270 2005/02/25 23:12:38 dtucker Exp $
2
2
 
3
3
# uncomment if you run a non bourne compatable shell. Ie. csh
4
4
#SHELL = @SH@
43
43
CFLAGS=@CFLAGS@
44
44
CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
45
45
LIBS=@LIBS@
 
46
LIBEDIT=@LIBEDIT@
46
47
LIBPAM=@LIBPAM@
47
48
LIBWRAP=@LIBWRAP@
48
49
AR=@AR@
84
85
        monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o \
85
86
        auth-krb5.o \
86
87
        auth2-gss.o gss-serv.o gss-serv-krb5.o \
87
 
        loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o
 
88
        loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \
 
89
        audit.o audit-bsm.o
88
90
 
89
91
MANPAGES        = scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out ssh-rand-helper.8.out ssh-keysign.8.out sshd_config.5.out ssh_config.5.out
90
92
MANPAGES_IN     = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-rand-helper.8 ssh-keysign.8 sshd_config.5 ssh_config.5
158
160
        $(LD) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
159
161
 
160
162
sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o
161
 
        $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
 
163
        $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT)
162
164
 
163
165
ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o
164
166
        $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
194
196
 
195
197
clean:  regressclean
196
198
        rm -f *.o *.a $(TARGETS) logintest config.cache config.log
197
 
        rm -f *.out core
 
199
        rm -f *.out core survey
198
200
        (cd openbsd-compat && $(MAKE) clean)
199
201
 
200
202
distclean:      regressclean
201
203
        rm -f *.o *.a $(TARGETS) logintest config.cache config.log
202
204
        rm -f *.out core opensshd.init
203
 
        rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds *~
 
205
        rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds survey.sh *~
204
206
        rm -rf autom4te.cache
205
207
        (cd openbsd-compat && $(MAKE) distclean)
206
208
        (cd scard && $(MAKE) distclean)
228
230
        -rm -rf autom4te.cache
229
231
        (cd scard && $(MAKE) -f Makefile.in distprep)
230
232
 
231
 
install: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files host-key check-config
232
 
install-nokeys: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files
 
233
install: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config
 
234
install-nokeys: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf
 
235
install-nosysconf: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files
233
236
 
234
237
check-config:
235
238
        -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
279
282
        ln -s ./ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin
280
283
        -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
281
284
        ln -s ./ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
 
285
 
 
286
install-sysconf:
282
287
        if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \
283
288
                $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \
284
289
        fi
292
297
        else \
293
298
                echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \
294
299
        fi
295
 
        @if [ -f ssh_prng_cmds -a ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \
 
300
        @if [ -f ssh_prng_cmds ] && [ ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \
296
301
                if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \
297
302
                        $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \
298
303
                else \
376
381
        BUILDDIR=`pwd`; \
377
382
        [ -d `pwd`/regress ]  ||  mkdir -p `pwd`/regress; \
378
383
        [ -f `pwd`/regress/Makefile ]  || \
379
 
            ln -s $(srcdir)/regress/Makefile `pwd`/regress/Makefile ; \
 
384
            ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile ; \
380
385
        TEST_SHELL="@TEST_SHELL@"; \
381
386
        TEST_SSH_SSH="$${BUILDDIR}/ssh"; \
382
387
        TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \
406
411
                $@
407
412
 
408
413
regressclean:
409
 
        if [ -f regress/Makefile -a -r regress/Makefile ]; then \
 
414
        if [ -f regress/Makefile ] && [ -r regress/Makefile ]; then \
410
415
                (cd regress && $(MAKE) clean) \
411
416
        fi
412
417
 
 
418
survey: survey.sh ssh
 
419
        @$(SHELL) ./survey.sh > survey
 
420
        @echo 'The survey results have been placed in the file "survey" in the'
 
421
        @echo 'current directory.  Please review the file then send with'
 
422
        @echo '"make send-survey".'
 
423
 
 
424
send-survey:    survey
 
425
        mail portable-survey@mindrot.org <survey
 
426
 
413
427
package: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS)
414
428
        if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \
415
429
                sh buildpkg.sh; \