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
14 all: lookups.a lf_quote.o lf_check_file.o lf_sqlperform.o $(MODS)
17 @$(RM_COMMAND) -f lookups.a
18 @echo "$(AR) lookups.a"
19 @$(AR) lookups.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) $(LOOKUP_$*_INCLUDE) $(LOOKUP_$*_LIBS) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@
29 lf_check_file.o: $(HDRS) lf_check_file.c lf_functions.h
30 lf_quote.o: $(HDRS) lf_quote.c lf_functions.h
31 lf_sqlperform.o: $(HDRS) lf_sqlperform.c lf_functions.h
33 cdb.o cdb.so: $(HDRS) cdb.c
34 dbmdb.o dbmdb.so: $(HDRS) dbmdb.c
35 dnsdb.o dnsdb.so: $(HDRS) dnsdb.c
36 dsearch.o dsearch.so: $(HDRS) dsearch.c
37 ibase.o ibase.so: $(HDRS) ibase.c
38 ldap.o ldap.so: $(HDRS) ldap.c
39 lmdb.o lmdb.so: $(HDRS) lmdb.c
40 json.o json.so: $(HDRS) json.c
41 lsearch.o lsearch.so: $(HDRS) lsearch.c
42 mysql.o mysql.so: $(HDRS) mysql.c
43 nis.o nis.so: $(HDRS) nis.c
44 nisplus.o nisplus.so: $(HDRS) nisplus.c
45 oracle.o oracle.so: $(HDRS) oracle.c
46 passwd.o passwd.so: $(HDRS) passwd.c
47 pgsql.o pgsql.so: $(HDRS) pgsql.c
48 readsock.o readsock.so: $(HDRS) readsock.c
49 redis.o redis.so: $(HDRS) redis.c
50 spf.o spf.so: $(HDRS) spf.c
51 sqlite.o sqlite.so: $(HDRS) sqlite.c
52 testdb.o testdb.so: $(HDRS) testdb.c
53 whoson.o whoson.so: $(HDRS) whoson.c