File:  [DragonFly] / src / usr.bin / vacation / Makefile
Revision 1.4: download - view: text, annotated - select for diffs
Fri Feb 13 03:53:37 2004 UTC (10 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: HEAD, DragonFly_Stable, DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2, DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Add -D__FreeBSD__ for buildworld (vacation pulls source files from
contrib/sendmail)

    1: # $FreeBSD: src/usr.bin/vacation/Makefile,v 1.6.2.3 2002/03/25 21:31:50 gshapiro Exp $
    2: # $DragonFly: src/usr.bin/vacation/Makefile,v 1.4 2004/02/13 03:53:37 dillon Exp $
    3: 
    4: SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
    5: .PATH:	${SENDMAIL_DIR}/vacation
    6: 
    7: PROG=	vacation
    8: SRCS=	vacation.c
    9: CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
   10: CFLAGS+=-DNEWDB -DNOT_SENDMAIL
   11: CFLAGS+=-D_FFR_LISTDB -D_FFR_DEBUG
   12: 
   13: # Fake __FreeBSD__ so sendmail uses a reasonable feature set.  osreldate.h
   14: # will generate a __FreeBSD_version for us.
   15: CFLAGS+=-D__FreeBSD__
   16: 
   17: .if exists(${.OBJDIR}/../../lib/libsm)
   18: LIBSMDIR:=	${.OBJDIR}/../../lib/libsm
   19: .else
   20: LIBSMDIR!=	cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
   21: .endif
   22: LIBSM:=		${LIBSMDIR}/libsm.a
   23: 
   24: .if exists(${.OBJDIR}/../../lib/libsmdb)
   25: LIBSMDBDIR:=	${.OBJDIR}/../../lib/libsmdb
   26: .else
   27: LIBSMDBDIR!=	cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR
   28: .endif
   29: LIBSMDB:=	${LIBSMDBDIR}/libsmdb.a
   30: 
   31: .if exists(${.OBJDIR}/../../lib/libsmutil)
   32: LIBSMUTILDIR:=	${.OBJDIR}/../../lib/libsmutil
   33: .else
   34: LIBSMUTILDIR!=	cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
   35: .endif
   36: LIBSMUTIL:=	${LIBSMUTILDIR}/libsmutil.a
   37: 
   38: DPADD=	${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
   39: LDADD=	${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
   40: 
   41: SRCS+=	sm_os.h
   42: CLEANFILES+=sm_os.h
   43: 
   44: # User customizations to the sendmail build environment
   45: CFLAGS+=${SENDMAIL_CFLAGS}
   46: DPADD+=${SENDMAIL_DPADD}
   47: LDADD+=${SENDMAIL_LDADD}
   48: LDFLAGS+=${SENDMAIL_LDFLAGS}
   49: 
   50: sm_os.h:
   51: 	ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
   52: 
   53: .include <bsd.prog.mk>