1 # Make file for building Exim's lookup modules.
2 # This is called from the main make file, after cd'ing
3 # to the lookups subdirectory.
5 # Copyright (c) The Exim Maintainers 2021 - 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
15 all: lookups.a $(MODS)
18 @$(RM_COMMAND) -f lookups.a
19 @echo "$(AR) lookups.a"
20 @$(AR) lookups.a $(OBJ)
24 .c.o:; @echo "$(CC) $*.c"
25 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
27 .c.so:; @echo "$(CC) -shared $*.c"
28 $(FE)$(CC) $(LOOKUP_$*_INCLUDE) $(LOOKUP_$*_LIBS) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@
30 cdb.o cdb.so: $(HDRS) cdb.c
31 dbmdb.o dbmdb.so: $(HDRS) dbmdb.c
32 dnsdb.o dnsdb.so: $(HDRS) dnsdb.c
33 dsearch.o dsearch.so: $(HDRS) dsearch.c
34 ibase.o ibase.so: $(HDRS) ibase.c
35 ldap.o ldap.so: $(HDRS) ldap.c
36 lmdb.o lmdb.so: $(HDRS) lmdb.c
37 json.o json.so: $(HDRS) json.c
38 lsearch.o lsearch.so: $(HDRS) lsearch.c
39 mysql.o mysql.so: $(HDRS) mysql.c
40 nis.o nis.so: $(HDRS) nis.c
41 nisplus.o nisplus.so: $(HDRS) nisplus.c
42 oracle.o oracle.so: $(HDRS) oracle.c
43 passwd.o passwd.so: $(HDRS) passwd.c
44 pgsql.o pgsql.so: $(HDRS) pgsql.c
45 readsock.o readsock.so: $(HDRS) readsock.c
46 redis.o redis.so: $(HDRS) redis.c
47 spf.o spf.so: $(HDRS) spf.c
48 sqlite.o sqlite.so: $(HDRS) sqlite.c
49 testdb.o testdb.so: $(HDRS) testdb.c
50 whoson.o whoson.so: $(HDRS) whoson.c