1 # $NetBSD: Makefile,v 1.10 2025/04/16 23:55:18 tls 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 9 NOMAN= # defined 10 11 .include <bsd.own.mk> 12 13 PROG= postconf 14 15 DIST= ${NETBSDSRCDIR}/external/ibm-public/postfix/dist/src/${PROG} 16 .PATH: ${DIST} 17 18 PSRCS= postconf.c postconf_builtin.c postconf_dbms.c postconf_edit.c \ 19 postconf_main.c postconf_master.c postconf_misc.c postconf_node.c \ 20 postconf_other.c postconf_service.c postconf_unused.c postconf_user.c \ 21 postconf_lookup.c postconf_match.c postconf_print.c 22 GENSRCS=bool_table.h bool_vars.h int_table.h int_vars.h str_table.h \ 23 str_vars.h time_table.h time_vars.h raw_table.h raw_vars.h \ 24 nint_table.h nint_vars.h nbool_table.h nbool_vars.h long_table.h \ 25 long_vars.h str_fn_table.h str_fn_vars.h 26 27 SRCS= ${PSRCS} ${GENSRCS} 28 DPSRCS= ${GENSRCS} 29 30 CLEANFILES+= ${GENSRCS} 31 32 CPPFLAGS+= -I. 33 34 DPADD+= ${LIBPTLS} ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL} 35 LDADD+= ${LIBPTLS} ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL} 36 37 ${GENSRCS}: postconf-hdrs.stamp 38 CLEANFILES+= postconf-hdrs.stamp 39 postconf-hdrs.stamp: ${DIST}/../global/mail_params.h ${DIST}/../global/mail_params.c 40 ${_MKMSG_CREATE} ${GENSRCS} 41 rm -f ${.TARGET} 42 # Don't replace this with anything that puts DIST in the path to the 43 # files processed by awk; the awk script will produce wrong results 44 # if the source tree is in a directory that contains "tls" or "global" 45 # in its path. 46 (cd ${DIST} && ${TOOL_AWK} -f ${DIST}/extract.awk ../*/*.c) |\ 47 ${HOST_SH} - 48 touch ${.TARGET} 49 50 .include <bsd.prog.mk> 51