diff options
Diffstat (limited to 'devtools/M4/UNIX/sm-test.m4')
-rw-r--r-- | devtools/M4/UNIX/sm-test.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/devtools/M4/UNIX/sm-test.m4 b/devtools/M4/UNIX/sm-test.m4 new file mode 100644 index 0000000000000..71ce3c6e3f3fc --- /dev/null +++ b/devtools/M4/UNIX/sm-test.m4 @@ -0,0 +1,28 @@ +divert(-1) +# +# Copyright (c) 2001-2002 Sendmail, Inc. and its suppliers. +# All rights reserved. +# +# By using this file, you agree to the terms and conditions set +# forth in the LICENSE file which can be found at the top level of +# the sendmail distribution. +# +# Compile/run a test program for libsm. +# +# $Id: sm-test.m4,v 1.7 2002/02/01 17:38:07 ca Exp $ +# +define(`smtest', +`bldPUSH_TARGET($1)dnl +bldLIST_PUSH_ITEM(`bldC_PRODUCTS', $1)dnl +bldPUSH_CLEAN_TARGET($1`-clean')dnl +divert(bldTARGETS_SECTION) +$1`'SRCS=$1.c +$1: ${BEFORE} $1.o ifdef(`confREQUIRE_LIBSM', `libsm.a') + ${CC} -o $1 ${LDOPTS} ${LIBDIRS} $1.o ifdef(`confREQUIRE_LIBSM', `libsm.a') ${LIBS} +ifelse(len(X`'$2), `1', `', ` + @echo ============================================================ + ./$1 + @echo ============================================================') +$1-clean: + rm -f $1 $1.o +divert(0)') |