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