1 |
divert(-1) |
2 |
# |
3 |
# Copyright (c) 1999-2001, 2006 Sendmail, Inc. and its suppliers. |
4 |
# All rights reserved. |
5 |
# |
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. |
9 |
# |
10 |
# |
11 |
# Definitions for Makefile construction for sendmail |
12 |
# |
13 |
# $Id: library.m4,v 8.11 2006/09/05 22:56:53 ca Exp $ |
14 |
# |
15 |
divert(0)dnl |
16 |
include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/links.m4')dnl |
17 |
bldLIST_PUSH_ITEM(`bldC_PRODUCTS', bldCURRENT_PRODUCT)dnl |
18 |
bldPUSH_TARGET(bldCURRENT_PRODUCT.so)dnl |
19 |
bldPUSH_INSTALL_TARGET(`install-'bldCURRENT_PRODUCT)dnl |
20 |
bldPUSH_CLEAN_TARGET(bldCURRENT_PRODUCT`-clean')dnl |
21 |
|
22 |
include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/defines.m4') |
23 |
divert(bldTARGETS_SECTION) |
24 |
bldCURRENT_PRODUCT.so: ${BEFORE} ${bldCURRENT_PRODUCT`OBJS'} |
25 |
${LD} ${LDOPTS_SO} -o bldCURRENT_PRODUCT.so -Wl,confSONAME -Wl,bldCURRENT_PRODUCT.so.${MILTER_SOVER} ${bldCURRENT_PRODUCT`OBJS'} |
26 |
ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)') |
27 |
|
28 |
install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.so |
29 |
ifdef(`bldINSTALLABLE', ` ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.so ${DESTDIR}${LIBDIR}/bldCURRENT_PRODUCT.so.${MILTER_SOVER}') |
30 |
|
31 |
bldCURRENT_PRODUCT-clean: |
32 |
rm -f ${OBJS} bldCURRENT_PRODUCT.so ${MANPAGES} |
33 |
|
34 |
divert(0) |
35 |
COPTS+= confCCOPTS_SO |