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