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