diff options
Diffstat (limited to 'debian/build/autoconf.mk.in')
-rw-r--r-- | debian/build/autoconf.mk.in | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/debian/build/autoconf.mk.in b/debian/build/autoconf.mk.in new file mode 100644 index 0000000..c531e82 --- /dev/null +++ b/debian/build/autoconf.mk.in @@ -0,0 +1,98 @@ +#!/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@ + +# 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 |