summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in90
1 files changed, 80 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in
index 7d192bb7c..4eab574a7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,4 +1,4 @@
1# $Id: Makefile.in,v 1.356 2014/02/04 00:12:56 djm Exp $ 1# $Id: Makefile.in,v 1.365 2014/08/30 06:23:07 djm Exp $
2 2
3# uncomment if you run a non bourne compatable shell. Ie. csh 3# uncomment if you run a non bourne compatable shell. Ie. csh
4#SHELL = @SH@ 4#SHELL = @SH@
@@ -29,6 +29,7 @@ SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper
29PRIVSEP_PATH=@PRIVSEP_PATH@ 29PRIVSEP_PATH=@PRIVSEP_PATH@
30SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ 30SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@
31STRIP_OPT=@STRIP_OPT@ 31STRIP_OPT=@STRIP_OPT@
32TEST_SHELL=@TEST_SHELL@
32 33
33PATHS= -DSSHDIR=\"$(sysconfdir)\" \ 34PATHS= -DSSHDIR=\"$(sysconfdir)\" \
34 -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \ 35 -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \
@@ -63,7 +64,16 @@ MANFMT=@MANFMT@
63 64
64TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT) 65TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT)
65 66
66LIBSSH_OBJS=authfd.o authfile.o bufaux.o bufbn.o buffer.o \ 67LIBOPENSSH_OBJS=\
68 ssherr.o \
69 sshbuf.o \
70 sshkey.o \
71 sshbuf-getput-basic.o \
72 sshbuf-misc.o \
73 sshbuf-getput-crypto.o
74
75LIBSSH_OBJS=${LIBOPENSSH_OBJS} \
76 authfd.o authfile.o bufaux.o bufbn.o buffer.o \
67 canohost.o channels.o cipher.o cipher-aes.o \ 77 canohost.o channels.o cipher.o cipher-aes.o \
68 cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \ 78 cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \
69 compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \ 79 compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \
@@ -137,7 +147,7 @@ $(SSHOBJS): Makefile.in config.h
137$(SSHDOBJS): Makefile.in config.h 147$(SSHDOBJS): Makefile.in config.h
138 148
139.c.o: 149.c.o:
140 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< 150 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
141 151
142LIBCOMPAT=openbsd-compat/libopenbsd-compat.a 152LIBCOMPAT=openbsd-compat/libopenbsd-compat.a
143$(LIBCOMPAT): always 153$(LIBCOMPAT): always
@@ -216,6 +226,12 @@ umac128.o: umac.c
216clean: regressclean 226clean: regressclean
217 rm -f *.o *.a $(TARGETS) logintest config.cache config.log 227 rm -f *.o *.a $(TARGETS) logintest config.cache config.log
218 rm -f *.out core survey 228 rm -f *.out core survey
229 rm -f regress/unittests/test_helper/*.a
230 rm -f regress/unittests/test_helper/*.o
231 rm -f regress/unittests/sshbuf/*.o
232 rm -f regress/unittests/sshbuf/test_sshbuf
233 rm -f regress/unittests/sshkey/*.o
234 rm -f regress/unittests/sshkey/test_sshkey
219 (cd openbsd-compat && $(MAKE) clean) 235 (cd openbsd-compat && $(MAKE) clean)
220 236
221distclean: regressclean 237distclean: regressclean
@@ -224,6 +240,12 @@ distclean: regressclean
224 rm -f Makefile buildpkg.sh config.h config.status 240 rm -f Makefile buildpkg.sh config.h config.status
225 rm -f survey.sh openbsd-compat/regress/Makefile *~ 241 rm -f survey.sh openbsd-compat/regress/Makefile *~
226 rm -rf autom4te.cache 242 rm -rf autom4te.cache
243 rm -f regress/unittests/test_helper/*.a
244 rm -f regress/unittests/test_helper/*.o
245 rm -f regress/unittests/sshbuf/*.o
246 rm -f regress/unittests/sshbuf/test_sshbuf
247 rm -f regress/unittests/sshkey/*.o
248 rm -f regress/unittests/sshkey/test_sshkey
227 (cd openbsd-compat && $(MAKE) distclean) 249 (cd openbsd-compat && $(MAKE) distclean)
228 if test -d pkg ; then \ 250 if test -d pkg ; then \
229 rm -fr pkg ; \ 251 rm -fr pkg ; \
@@ -397,23 +419,71 @@ uninstall:
397 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 419 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8
398 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 420 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
399 421
400regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c 422regress-prep:
401 [ -d `pwd`/regress ] || mkdir -p `pwd`/regress 423 [ -d `pwd`/regress ] || mkdir -p `pwd`/regress
424 [ -d `pwd`/regress/unittests ] || mkdir -p `pwd`/regress/unittests
425 [ -d `pwd`/regress/unittests/test_helper ] || \
426 mkdir -p `pwd`/regress/unittests/test_helper
427 [ -d `pwd`/regress/unittests/sshbuf ] || \
428 mkdir -p `pwd`/regress/unittests/sshbuf
429 [ -d `pwd`/regress/unittests/sshkey ] || \
430 mkdir -p `pwd`/regress/unittests/sshkey
402 [ -f `pwd`/regress/Makefile ] || \ 431 [ -f `pwd`/regress/Makefile ] || \
403 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile 432 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile
433
434regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c
404 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ 435 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \
405 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 436 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
406 437
407regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c 438regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c
408 [ -d `pwd`/regress ] || mkdir -p `pwd`/regress
409 [ -f `pwd`/regress/Makefile ] || \
410 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile
411 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ 439 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \
412 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) 440 $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
413 441
414tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) regress/setuid-allowed$(EXEEXT) 442UNITTESTS_TEST_HELPER_OBJS=\
443 regress/unittests/test_helper/test_helper.o \
444 regress/unittests/test_helper/fuzz.o
445
446regress/unittests/test_helper/libtest_helper.a: ${UNITTESTS_TEST_HELPER_OBJS}
447 $(AR) rv $@ $(UNITTESTS_TEST_HELPER_OBJS)
448 $(RANLIB) $@
449
450UNITTESTS_TEST_SSHBUF_OBJS=\
451 regress/unittests/sshbuf/tests.o \
452 regress/unittests/sshbuf/test_sshbuf.o \
453 regress/unittests/sshbuf/test_sshbuf_getput_basic.o \
454 regress/unittests/sshbuf/test_sshbuf_getput_crypto.o \
455 regress/unittests/sshbuf/test_sshbuf_misc.o \
456 regress/unittests/sshbuf/test_sshbuf_fuzz.o \
457 regress/unittests/sshbuf/test_sshbuf_getput_fuzz.o \
458 regress/unittests/sshbuf/test_sshbuf_fixed.o
459
460regress/unittests/sshbuf/test_sshbuf$(EXEEXT): ${UNITTESTS_TEST_SSHBUF_OBJS} \
461 regress/unittests/test_helper/libtest_helper.a libssh.a
462 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHBUF_OBJS) \
463 regress/unittests/test_helper/libtest_helper.a \
464 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
465
466UNITTESTS_TEST_SSHKEY_OBJS=\
467 regress/unittests/sshkey/test_fuzz.o \
468 regress/unittests/sshkey/tests.o \
469 regress/unittests/sshkey/common.o \
470 regress/unittests/sshkey/test_file.o \
471 regress/unittests/sshkey/test_sshkey.o
472
473regress/unittests/sshkey/test_sshkey$(EXEEXT): ${UNITTESTS_TEST_SSHKEY_OBJS} \
474 regress/unittests/test_helper/libtest_helper.a libssh.a
475 $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHKEY_OBJS) \
476 regress/unittests/test_helper/libtest_helper.a \
477 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
478
479REGRESS_BINARIES=\
480 regress/modpipe$(EXEEXT) \
481 regress/setuid-allowed$(EXEEXT) \
482 regress/unittests/sshbuf/test_sshbuf$(EXEEXT) \
483 regress/unittests/sshkey/test_sshkey$(EXEEXT)
484
485tests interop-tests t-exec: regress-prep $(TARGETS) $(REGRESS_BINARIES)
415 BUILDDIR=`pwd`; \ 486 BUILDDIR=`pwd`; \
416 TEST_SHELL="@TEST_SHELL@"; \
417 TEST_SSH_SCP="$${BUILDDIR}/scp"; \ 487 TEST_SSH_SCP="$${BUILDDIR}/scp"; \
418 TEST_SSH_SSH="$${BUILDDIR}/ssh"; \ 488 TEST_SSH_SSH="$${BUILDDIR}/ssh"; \
419 TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \ 489 TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \
@@ -437,7 +507,6 @@ tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) regress/setuid-allowed$
437 OBJ="$${BUILDDIR}/regress/" \ 507 OBJ="$${BUILDDIR}/regress/" \
438 PATH="$${BUILDDIR}:$${PATH}" \ 508 PATH="$${BUILDDIR}:$${PATH}" \
439 TEST_ENV=MALLOC_OPTIONS="@TEST_MALLOC_OPTIONS@" \ 509 TEST_ENV=MALLOC_OPTIONS="@TEST_MALLOC_OPTIONS@" \
440 TEST_SHELL="$${TEST_SHELL}" \
441 TEST_SSH_SCP="$${TEST_SSH_SCP}" \ 510 TEST_SSH_SCP="$${TEST_SSH_SCP}" \
442 TEST_SSH_SSH="$${TEST_SSH_SSH}" \ 511 TEST_SSH_SSH="$${TEST_SSH_SSH}" \
443 TEST_SSH_SSHD="$${TEST_SSH_SSHD}" \ 512 TEST_SSH_SSHD="$${TEST_SSH_SSHD}" \
@@ -453,6 +522,7 @@ tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) regress/setuid-allowed$
453 TEST_SSH_CONCH="$${TEST_SSH_CONCH}" \ 522 TEST_SSH_CONCH="$${TEST_SSH_CONCH}" \
454 TEST_SSH_IPV6="$${TEST_SSH_IPV6}" \ 523 TEST_SSH_IPV6="$${TEST_SSH_IPV6}" \
455 TEST_SSH_ECC="$${TEST_SSH_ECC}" \ 524 TEST_SSH_ECC="$${TEST_SSH_ECC}" \
525 TEST_SHELL="${TEST_SHELL}" \
456 EXEEXT="$(EXEEXT)" \ 526 EXEEXT="$(EXEEXT)" \
457 $@ && echo all tests passed 527 $@ && echo all tests passed
458 528