#!/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 @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@ sysconfdir = ${DESTDIR}@sysconfdir@ sharedstatedir = ${DESTDIR}@sharedstatedir@ localstatedir = ${DESTDIR}@localstatedir@ libdir = ${DESTDIR}@libdir@ includedir = ${DESTDIR}@includedir@ oldincludedir = ${DESTDIR}@oldincludedir@ datarootdir = ${DESTDIR}@datarootdir@ datadir = ${DESTDIR}@datadir@ infodir = ${DESTDIR}@infodir@ mandir = ${DESTDIR}@mandir@ docdir = ${DESTDIR}@docdir@ 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@ # My private variables buildtree = @buildtree@ sm_custom = @sm_custom@ sm_custom_s = @sm_custom_s@ sm_version = @sm_version@ sm_revision = @sm_revision@ # 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