1# @(#)Makefile 8.2 (Berkeley) 9/21/96 2# $FreeBSD$ 3 4MAINTAINER= gshapiro@FreeBSD.org 5 6SENDMAIL_DIR= ${.CURDIR}/../../contrib/sendmail 7.PATH: ${SENDMAIL_DIR}/praliases 8 9PROG= praliases 10SRCS= praliases.c 11MAN= praliases.8 12 13CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 14CFLAGS+= -DNEWDB -DNOT_SENDMAIL 15 16.if exists(${.OBJDIR}/../../lib/libsm) 17LIBSMDIR:= ${.OBJDIR}/../../lib/libsm 18.else 19LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR 20.endif 21LIBSM:= ${LIBSMDIR}/libsm.a 22 23.if exists(${.OBJDIR}/../../lib/libsmdb) 24LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb 25.else 26LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR 27.endif 28LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a 29 30.if exists(${.OBJDIR}/../../lib/libsmutil) 31LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil 32.else 33LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR 34.endif 35LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a 36 37DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 38LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 39 40SRCS+= sm_os.h 41CLEANFILES+=sm_os.h 42 43# User customizations to the sendmail build environment 44CFLAGS+= ${SENDMAIL_CFLAGS} 45LDFLAGS+=${SENDMAIL_LDFLAGS} 46DPADD+= ${SENDMAIL_DPADD} 47LDADD+= ${SENDMAIL_LDADD} 48 49sm_os.h: 50 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 51 52.include <bsd.prog.mk> 53