summaryrefslogtreecommitdiff
path: root/src/OS/Makefile-Base
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-02-09 21:42:32 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2018-02-09 21:42:32 +0000
commit165acdd1ea3b7399b2279f94c881f8e366efaf71 (patch)
treebb2df66fabaa11df006210ecfd2c1807047ae8f0 /src/OS/Makefile-Base
parentfc45ffe558f95017461aab9ea3830cedc00551b3 (diff)
Macros: convert to tree for speed of lookup
Diffstat (limited to 'src/OS/Makefile-Base')
-rw-r--r--src/OS/Makefile-Base27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/OS/Makefile-Base b/src/OS/Makefile-Base
index 230ab1bce..c96f46f0e 100644
--- a/src/OS/Makefile-Base
+++ b/src/OS/Makefile-Base
@@ -36,7 +36,7 @@ FE = $(FULLECHO)
# are set up, and finally it goes to the main Exim target.
all: utils exim
-config: $(EDITME) checklocalmake Makefile os.c config.h version.h version.sh macro.c
+config: $(EDITME) checklocalmake Makefile os.c config.h version.h version.sh macro_defs.c
checklocalmake:
@if $(SHELL) $(SCRIPTS)/newer $(EDITME)-$(OSTYPE) $(EDITME) || \
@@ -135,7 +135,7 @@ OBJ_MACRO = macro_predef.o \
macro-manualroute.o macro-queryprogram.o macro-redirect.o \
macro-auth-spa.o macro-cram_md5.o macro-cyrus_sasl.o macro-dovecot.o macro-gsasl_exim.o \
macro-heimdal_gssapi.o macro-plaintext.o macro-spa.o macro-tls.o\
- macro-dkim.o macro-malware.o
+ macro-dkim.o macro-malware.o macro-macro.o macro-tree.o
$(OBJ_MACRO): $(MACRO_HSRC)
@@ -229,13 +229,19 @@ macro-dkim.o: dkim.c
macro-malware.o: malware.c
@echo "$(CC) -DMACRO_PREDEF malware.c"
$(FE)$(CC) -c $(CFLAGS) -DMACRO_PREDEF $(INCLUDE) -o $@ malware.c
+macro-macro.o: macro.c
+ @echo "$(CC) -DMACRO_PREDEF macro.c"
+ $(FE)$(CC) -c $(CFLAGS) -DMACRO_PREDEF $(INCLUDE) -o $@ macro.c
+macro-tree.o: tree.c
+ @echo "$(CC) -DMACRO_PREDEF tree.c"
+ $(FE)$(CC) -c $(CFLAGS) -DMACRO_PREDEF $(INCLUDE) -o $@ tree.c
macro_predef: $(OBJ_MACRO)
@echo "$(LNCC) -o $@"
$(FE)$(LNCC) -o $@ $(LFLAGS) $(OBJ_MACRO)
-macro.c: macro_predef
- ./macro_predef > macro.c
+macro_defs.c: macro_predef
+ ./macro_predef > macro_defs.c
# This target is recognized specially by GNU make. It records those targets
# that do not correspond to files that are being built and which should
@@ -489,14 +495,13 @@ OBJ_EXPERIMENTAL = bmi_spam.o \
OBJ_LOOKUPS = lookups/lf_quote.o lookups/lf_check_file.o lookups/lf_sqlperform.o
OBJ_EXIM = acl.o base64.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o \
- directory.o dns.o drtables.o enq.o exim.o expand.o filter.o \
- filtertest.o globals.o dkim.o dkim_transport.o hash.o \
- header.o host.o ip.o log.o lss.o match.o moan.o \
+ dkim.o dkim_transport.o directory.o dns.o drtables.o enq.o exim.o \
+ expand.o environment.o filter.o filtertest.o globals.o hash.o \
+ header.o host.o ip.o log.o lss.o macro.o macro_defs.o match.o moan.o \
os.o parse.o queue.o \
rda.o readconf.o receive.o retry.o rewrite.o rfc2047.o \
route.o search.o sieve.o smtp_in.o smtp_out.o spool_in.o spool_out.o \
std-crypto.o store.o string.o tls.o tod.o transport.o tree.o verify.o \
- environment.o macro.o \
$(OBJ_LOOKUPS) \
local_scan.o $(EXIM_PERL) $(OBJ_WITH_CONTENT_SCAN) \
$(OBJ_EXPERIMENTAL)
@@ -768,6 +773,8 @@ dbfn.o: $(HDRS) dbfn.c
debug.o: $(HDRS) debug.c
deliver.o: $(HDRS) transports/smtp.h deliver.c
directory.o: $(HDRS) directory.c
+dkim.o: $(HDRS) pdkim/pdkim.h dkim.c
+dkim_transport.o: $(HDRS) dkim_transport.c
dns.o: $(HDRS) dns.c
enq.o: $(HDRS) enq.c
exim.o: $(HDRS) exim.c
@@ -782,6 +789,8 @@ host.o: $(HDRS) host.c
ip.o: $(HDRS) ip.c
log.o: $(HDRS) log.c
lss.o: $(HDRS) lss.c
+macro.o: $(HDRS) macro.c
+macro_defs.o: $(HDRS) macro_defs.c
match.o: $(HDRS) match.c
moan.o: $(HDRS) moan.c
os.o: $(HDRS) $(OS_C_INCLUDES) os.c
@@ -810,8 +819,6 @@ tod.o: $(HDRS) tod.c
transport.o: $(HDRS) transport.c
tree.o: $(HDRS) tree.c
verify.o: $(HDRS) transports/smtp.h verify.c
-dkim.o: $(HDRS) pdkim/pdkim.h dkim.c
-dkim_transport.o: $(HDRS) dkim_transport.c
# Dependencies for WITH_CONTENT_SCAN modules