1# $NetBSD: Makefile,v 1.1 2009/06/25 18:21:59 tron Exp $ 2 3# XXX Note we aren't building ../conf/main.cf.default 4# The shipped makefiles construct it using postconf -d after building 5# postconf. It isn't entirely clear how to deal with that in a cross 6# build environment, and the .default file isn't that useful to 7# the user anyway. 8 9NOMAN= # defined 10 11.include <bsd.own.mk> 12 13PROG= postconf 14 15DIST= ${NETBSDSRCDIR}/external/ibm-public/postfix/dist/src/${PROG} 16.PATH: ${DIST} 17 18PSRCS= postconf.c 19GENSRCS=bool_table.h bool_vars.h int_table.h int_vars.h str_table.h \ 20 str_vars.h time_table.h time_vars.h raw_table.h raw_vars.h 21AUTOSRCS=auto_table.h auto_vars.h 22 23SRCS= ${PSRCS} ${GENSRCS} ${AUTOSRCS} 24DPSRCS= ${GENSRCS} ${AUTOSRCS} 25 26CLEANFILES+= ${GENSRCS} ${AUTOSRCS} 27 28CPPFLAGS+= -I. 29 30DPADD+= ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL} 31LDADD+= ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL} 32 33${GENSRCS}: postconf-hdrs.stamp 34CLEANFILES+= postconf-hdrs.stamp 35postconf-hdrs.stamp: ${DIST}/../global/mail_params.h ${DIST}/../global/mail_params.c 36 ${_MKMSG_CREATE} ${GENSRCS} 37 rm -f ${.TARGET} 38 ${TOOL_AWK} -f ${DIST}/extract.awk ${DIST}/../*/*.c | ${HOST_SH} - 39 touch ${.TARGET} 40 41auto_table.h auto_vars.h: ${DIST}/auto.awk 42 ${TOOL_AWK} -f ${DIST}/auto.awk 43 44.include <bsd.prog.mk> 45