xref: /netbsd-src/external/ibm-public/postfix/sbin/postconf/Makefile (revision 33881f779a77dce6440bdc44610d94de75bebefe)
1#	$NetBSD: Makefile,v 1.9 2020/03/18 19:05:23 christos 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 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
22GENSRCS=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
27SRCS=	${PSRCS} ${GENSRCS}
28DPSRCS=	${GENSRCS}
29
30CLEANFILES+= ${GENSRCS}
31
32CPPFLAGS+= -I.
33
34DPADD+= ${LIBPTLS} ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL}
35LDADD+= ${LIBPTLS} ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL}
36
37${GENSRCS}: postconf-hdrs.stamp
38CLEANFILES+= postconf-hdrs.stamp
39postconf-hdrs.stamp: ${DIST}/../global/mail_params.h ${DIST}/../global/mail_params.c
40	${_MKMSG_CREATE} ${GENSRCS}
41	rm -f ${.TARGET}
42	${TOOL_AWK} -f ${DIST}/extract.awk ${DIST}/../*/*.c | ${HOST_SH} -
43	touch ${.TARGET}
44
45.include <bsd.prog.mk>
46