mirror of
https://github.com/opnsense/src.git
synced 2026-02-15 08:38:13 -05:00
28 lines
899 B
Text
28 lines
899 B
Text
divert(-1)
|
|
#
|
|
# Copyright (c) 2006 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.
|
|
#
|
|
# $Id: check.m4,v 8.5 2006/08/28 23:48:54 ca Exp $
|
|
#
|
|
define(`smcheck', `dnl
|
|
ifelse(X`'$2, `X', `', `ifelse(index($2, `run'), `-1', `', `dnl
|
|
bldLIST_PUSH_ITEM(`bldCHECK_TARGETS', $1)dnl
|
|
')')
|
|
ifelse(X`'$2, `X', `', `ifelse(index($2, `compile'), `-1', `', `dnl
|
|
bldLIST_PUSH_ITEM(`bldC_CHECKS', $1)dnl
|
|
bldLIST_PUSH_ITEM(`bldCHECK_PROGRAMS', $1)dnl
|
|
bldPUSH_CLEAN_TARGET($1`-clean')dnl
|
|
divert(bldTARGETS_SECTION)
|
|
$1`'SRCS=$1.c
|
|
$1: ${BEFORE} $1.o ifdef(`confCHECK_LIBS', `confCHECK_LIBS')
|
|
${CC} -o $1 ${LDOPTS} ${LIBDIRS} $1.o ifdef(`confCHECK_LIBS', `confCHECK_LIBS') ${LIBS}
|
|
$1-clean:
|
|
rm -f $1 $1.o')')
|
|
divert(0)')
|