Macros for module func call numbers
[exim.git] / src / OS / Makefile-Base
index 2e8728ae2c5fa6c09922a55c957f7a8934573f79..591b4261c006a18fc05ee5321e6d1d9229eea378 100644 (file)
@@ -245,7 +245,7 @@ macro.c: macro_predef
 
 .PHONY: all config utils \
        buildauths buildlookups buildpdkim buildrouters \
-        buildtransports dynmodules checklocalmake clean
+        buildtransports buildmisc dynmodules checklocalmake clean
 
 
 utils: $(EXIM_MONITOR) exicyclog exinext exiwhat \
@@ -499,9 +499,7 @@ OBJ_EXPERIMENTAL =  arc.o \
                        bmi_spam.o \
                        dane.o \
                        dcc.o \
-                       dmarc.o \
                        imap_utf7.o \
-                       spf.o \
                        utf8.o \
                        xclient.o
 
@@ -529,12 +527,12 @@ OBJ_EXIM = acl.o base64.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o \
         $(OBJ_EXPERIMENTAL)
 
 exim:   buildlookups buildauths pdkim/pdkim.a \
-        buildrouters buildtransports \
+        buildrouters buildtransports buildmisc \
         $(OBJ_EXIM) version.o
        @echo "$(LNCC) -o exim"
        $(FE)$(PURIFY) $(LNCC) -o exim $(LFLAGS) $(OBJ_EXIM) version.o \
          routers/routers.a transports/transports.a lookups/lookups.a \
-         auths/auths.a pdkim/pdkim.a \
+         auths/auths.a pdkim/pdkim.a miscmods/miscmods.a \
          $(LIBRESOLV) $(LIBS) $(LIBS_EXIM) $(IPV6_LIBS) $(EXTRALIBS) \
          $(EXTRALIBS_EXIM) $(DBMLIB) $(LOOKUP_LIBS) $(AUTH_LIBS) \
          $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LDFLAGS)
@@ -687,6 +685,8 @@ HDRS  =     blob.h \
        hintsdb/hints_tdb.h \
        local_scan.h \
        macros.h \
+       miscmods/dmarc_api.h \
+       miscmods/spf_api.h \
        mytypes.h \
        path_max.h \
        sha_ver.h \
@@ -706,6 +706,8 @@ PHDRS = ../config.h \
        ../hintsdb/hints_tdb.h \
        ../local_scan.h \
        ../macros.h \
+       ../miscmods/dmarc_api.h \
+       ../miscmods/spf_api.h \
        ../mytypes.h \
        ../path_max.h \
        ../structs.h \
@@ -902,9 +904,7 @@ arc.o:              $(HDRS) pdkim/pdkim.h arc.c
 bmi_spam.o:    $(HDRS) bmi_spam.c
 dane.o:                $(HDRS) dane.c dane-openssl.c
 dcc.o:         $(HDRS) dcc.h dcc.c
-dmarc.o:       $(HDRS) pdkim/pdkim.h dmarc.h dmarc.c
 imap_utf7.o:   $(HDRS) imap_utf7.c
-spf.o:         $(HDRS) spf.h spf.c
 utf8.o:                $(HDRS) utf8.c
 xclient.o:     $(HDRS) xclient.c
 
@@ -1018,10 +1018,11 @@ $(MONBIN): $(HDRS)
 
 # Copies of modules built as dynamic-load libraries
 
-dynmodules: buildlookups buildrouters buildtransports buildauths
+dynmodules: buildlookups buildrouters buildtransports buildauths \
+               buildmisc
        rm -fr dynmodules
        mkdir dynmodules
-       for d in lookup router transport auth; do \
+       for d in lookup router transport auth miscmod; do \
          for f in $${d}s/*.so; do \
            [ -e $$f ] && ln $$f dynmodules/`basename $$f .so`_$$d.so; \
          done; \
@@ -1073,6 +1074,14 @@ pdkim/pdkim.a: config
           INCLUDE="$(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE)"
         @echo " "
 
+buildmisc: config
+        @cd miscmods && $(MAKE) SHELL=$(SHELL) AR="$(AR)" $(MFLAGS) \
+          CC="$(CC)" CFLAGS="$(CFLAGS)" \
+            CFLAGS_DYNAMIC="$(CFLAGS_DYNAMIC)" HDRS="../version.h $(PHDRS)" \
+            FE="$(FE)" RANLIB="$(RANLIB)" RM_COMMAND="$(RM_COMMAND)" \
+            INCLUDE="$(INCLUDE) $(IPV6_INCLUDE)"
+        @echo " "
+
 # The "clean", "install", and "makefile" targets just pass themselves back to
 # the main Exim makefile. These targets will be obeyed only if "make" is obeyed
 # for them in the build directory.