+# Build the builtin-macros data struct
+
+MACRO_CSRC = macro_predef.c globals.c readconf.c route.c transport.c \
+ drtables.c \
+ transports/appendfile.c transports/autoreply.c transports/lmtp.c \
+ transports/pipe.c transports/queuefile.c transports/smtp.c \
+ routers/accept.c routers/dnslookup.c routers/ipliteral.c \
+ routers/iplookup.c routers/manualroute.c routers/queryprogram.c \
+ routers/redirect.c \
+ auths/auth-spa.c auths/cram_md5.c auths/cyrus_sasl.c auths/dovecot.c \
+ auths/gsasl_exim.c auths/heimdal_gssapi.c auths/plaintext.c auths/spa.c \
+ auths/tls.c
+MACRO_HSRC = macro_predef.h os.h globals.h config.h \
+ routers/accept.h routers/dnslookup.h routers/ipliteral.h \
+ routers/iplookup.h routers/manualroute.h routers/queryprogram.h \
+ routers/redirect.h
+
+macro_predef: $(MACRO_CSRC) $(MACRO_HSRC)
+ @echo "$(CC) -DMACRO_PREDEF macro_predef.c"
+ $(FE)$(CC) $(CFLAGS) -DMACRO_PREDEF $(INCLUDE) -o macro_predef $(MACRO_CSRC)
+
+macro.c: macro_predef
+ ./macro_predef > macro.c