59049318b6
via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release".
29 lines
745 B
Makefile
29 lines
745 B
Makefile
# $FreeBSD$
|
|
|
|
MAINTAINER= gshapiro@FreeBSD.org
|
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
|
|
|
|
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
|
CFLAGS+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf
|
|
CFLAGS+=-D_THREAD_SAFE
|
|
|
|
# User customizations to the sendmail build environment
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
INCSDIR=${INCLUDEDIR}/libmilter
|
|
INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \
|
|
${SENDMAIL_DIR}/include/libmilter/mfdef.h
|
|
LIB= milter
|
|
|
|
SRCS+= sm_os.h
|
|
SRCS+= main.c engine.c listener.c handler.c comm.c smfi.c \
|
|
signal.c sm_gethost.c errstring.c strl.c
|
|
CLEANFILES+=sm_os.h
|
|
|
|
sm_os.h:
|
|
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
|
|
|
.include <bsd.lib.mk>
|