1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#!/usr/bin/make -f
#------------------------------------------------------------------------------
# vim: syntax=make
#
# $Sendmail: autoconf.mk,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $
#
# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved.
#
# @configure_input@
#
# Rules file for Sendmail @sm_version@@sm_revision@(@sm_version_math@)
# on @sm_dist_name@ @sm_dist_vers@
# via Debhelper V@DEBIAN_DH@
#
# Note: the .in file supports Sendmail @SM_MINVERS@ - @SM_MAXVERS@
# on Debian slink, potato, woody, testing, sid, ...
# but the generated file is customized to the version noted above.
#
# Richard Nelson <cowboy@debian.org> @sm_date@ @sm_time@ (@sm_utc@)
#------------------------------------------------------------------------------
#SHELL := /bin/sh -x
# Variables for, and by, Autoconf (Don't touch these! edit config step)
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = ${DESTDIR}@bindir@
sbindir = ${DESTDIR}@sbindir@
libexecdir = ${DESTDIR}@libexecdir@
datadir = ${DESTDIR}@datadir@
sysconfdir = ${DESTDIR}@sysconfdir@
sharedstatedir = ${DESTDIR}@sharedstatedir@
localstatedir = ${DESTDIR}@localstatedir@
libdir = ${DESTDIR}@libdir@
includedir = ${DESTDIR}@includedir@
infodir = ${DESTDIR}@infodir@
mandir = ${DESTDIR}@mandir@
srcdir = @srcdir@
abs_srcdir = @abs_srcdir@
top_srcdir = @top_srcdir@
abs_top_srcdir = @abs_top_srcdir@
builddir = @builddir@
abs_builddir = @abs_builddir@
top_builddir = @top_builddir@
abs_top_builddir = @abs_top_builddir@
VPATH = @srcdir@
docdir = ${DESTDIR}@docdir@
buildtree = @buildtree@
# I like to preserve timestamps...
INSTALL := @INSTALL@ -p
INSTALL_PROGRAM := @INSTALL_PROGRAM@
# We'll let the dh_strip program take care of this for us...
#ifeq (,$(findstring nostrip,${DEB_BUILD_OPTIONS}))
# override INSTALL_PROGRAM += -s
# endif
INSTALL_DATA := @INSTALL_DATA@
# Scripts need to be executable also
INSTALL_SCRIPT := @INSTALL_SCRIPT@ -m 0755
# AutoConfig generated
AC_CC := @CC@
AC_CFLAGS := @CFLAGS@
AC_DEFS := @CPPFLAGS@ @DEFS@
AC_LDFLAGS := @LDFLAGS@
AC_LIBS := @LIBS@
# Private AutoConfig generated
sm_libmilter_version := @sm_libmilter_version@
# Define standard compile/install flags (skip if not yet configured)
DUMMY_CC := $(shell echo '-CC-' | tr '-' '@')
ifeq ("cc", "${AC_CC}")
ifeq ("y", "$(shell test -x /usr/bin/gcc-3.2 && echo 'y' || echo 'n')")
AC_CC := gcc-3.2
else
ifeq ("y", "$(shell test -x /usr/bin/gcc-3.1 && echo 'y' || echo 'n')")
AC_CC := gcc-3.1
endif
endif
endif
ifneq ("${DUMMY_CC}", "${AC_CC}")
CC := ${AC_CC}
#DEFS := ${AC_DEFS} ${DEFINES}
DEFS := ${DEFINES}
LDFLAGS := ${AC_LDFLAGS}
LIBS := ${AC_LIBS}
endif
ifeq (,${CFLAGS})
CFLAGS := -O2 -g -Wall ${DEFS}
endif
# No longer needed, left as an example:
# Force no optimization for arm - buggy compiler...
#ifeq ("arm", "${DEB_HOST_ARCH}")
# override CFLAGS := -O0 -Wall
# endif
ifneq (,$(findstring noopt,${DEB_BUILD_OPTIONS}))
override CFLAGS += -O0
endif
|