3 # Copyright (c) 1999-2001 Sendmail, Inc. and its suppliers.
6 # By using this file, you agree to the terms and conditions set
7 # forth in the LICENSE file which can be found at the top level of
8 # the sendmail distribution.
11 # Definitions for Makefile construction for sendmail
13 # $Id: library.m4,v 8.10 2001/02/14 04:39:38 gshapiro Exp $
16 include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/links.m4')dnl
17 bldLIST_PUSH_ITEM(`bldC_PRODUCTS', bldCURRENT_PRODUCT)dnl
18 bldPUSH_TARGET(bldCURRENT_PRODUCT`.a')dnl
19 bldPUSH_INSTALL_TARGET(`install-'bldCURRENT_PRODUCT)dnl
20 bldPUSH_CLEAN_TARGET(bldCURRENT_PRODUCT`-clean')dnl
22 include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/defines.m4')
23 divert(bldTARGETS_SECTION)
24 bldCURRENT_PRODUCT.a: ${BEFORE} ${bldCURRENT_PRODUCT`OBJS'}
25 ${AR} ${AROPTS} bldCURRENT_PRODUCT.a ${bldCURRENT_PRODUCT`OBJS'}
26 ${RANLIB} ${RANLIBOPTS} bldCURRENT_PRODUCT.a
27 ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)')
29 install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.a
30 ifdef(`bldINSTALLABLE', ` ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.a ${DESTDIR}${LIBDIR}')
32 bldCURRENT_PRODUCT-clean:
33 rm -f ${OBJS} bldCURRENT_PRODUCT.a ${MANPAGES}