1# $NetBSD: Makefile,v 1.2 2010/02/19 13:55:46 njoly 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 nint_table.h \ 20 nint_vars.h str_table.h str_vars.h time_table.h time_vars.h \ 21 raw_table.h raw_vars.h 22AUTOSRCS=auto_table.h auto_vars.h 23 24SRCS= ${PSRCS} ${GENSRCS} ${AUTOSRCS} 25DPSRCS= ${GENSRCS} ${AUTOSRCS} 26 27CLEANFILES+= ${GENSRCS} ${AUTOSRCS} 28 29CPPFLAGS+= -I. 30 31DPADD+= ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL} 32LDADD+= ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL} 33 34${GENSRCS}: postconf-hdrs.stamp 35CLEANFILES+= postconf-hdrs.stamp 36postconf-hdrs.stamp: ${DIST}/../global/mail_params.h ${DIST}/../global/mail_params.c 37 ${_MKMSG_CREATE} ${GENSRCS} 38 rm -f ${.TARGET} 39 ${TOOL_AWK} -f ${DIST}/extract.awk ${DIST}/../*/*.c | ${HOST_SH} - 40 touch ${.TARGET} 41 42auto_table.h auto_vars.h: ${DIST}/auto.awk 43 ${TOOL_AWK} -f ${DIST}/auto.awk 44 45.include <bsd.prog.mk> 46