1 # Make file for building Exim's lookup modules.
2 # This is called from the main make file, after cd'ing
3 # to the misc_modulessubdirectory.
5 # Copyright (c) The Exim Maintainers 2024
7 # nb: at build time, the version of this file used will have had some
8 # extra variable definitions and prepended to it and module build rules
9 # interpolated below. This is done by scripts/lookups-Makefile.
11 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE
14 all: miscmods.a $(MODS)
17 @$(RM_COMMAND) -f miscmods.a
18 @echo "$(AR) miscmods.a"
19 @$(AR) miscmods.a $(OBJ)
23 .c.o:; @echo "$(CC) $*.c"
24 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
26 .c.so:; @echo "$(CC) -shared $*.c"
27 $(FE)$(CC) $(SUPPORT_$*_INCLUDE) $(SUPPORT_$*_LIBS) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@
29 spf.o spf.so: $(HDRS) spf.h spf.c