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)
15 # for f in *.so; do mv $$f `basename $$f .so`_lookup.so; done
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 lf_check_file.o: $(HDRS) lf_check_file.c lf_functions.h
31 lf_quote.o: $(HDRS) lf_quote.c lf_functions.h
32 lf_sqlperform.o: $(HDRS) lf_sqlperform.c lf_functions.h
35 dbmdb.o: $(HDRS) dbmdb.c
36 dnsdb.o: $(HDRS) dnsdb.c
37 dsearch.o: $(HDRS) dsearch.c
38 ibase.o: $(HDRS) ibase.c
39 ldap.o: $(HDRS) ldap.c
40 lmdb.o: $(HDRS) lmdb.c
41 json.o: $(HDRS) json.c
42 lsearch.o: $(HDRS) lsearch.c
43 mysql.o: $(HDRS) mysql.c
45 nisplus.o: $(HDRS) nisplus.c
46 oracle.o: $(HDRS) oracle.c
47 passwd.o: $(HDRS) passwd.c
48 pgsql.o: $(HDRS) pgsql.c
49 readsock.o: $(HDRS) readsock.c
50 redis.o: $(HDRS) redis.c
52 sqlite.o: $(HDRS) sqlite.c
53 testdb.o: $(HDRS) testdb.c
54 whoson.o: $(HDRS) whoson.c
57 dbmdb.so: $(HDRS) dbmdb.c
58 dnsdb.so: $(HDRS) dnsdb.c
59 dsearch.so: $(HDRS) dsearch.c
60 ibase.so: $(HDRS) ibase.c
61 json.so: $(HDRS) json.c
62 ldap.so: $(HDRS) ldap.c
63 lmdb.so: $(HDRS) lmdb.c
64 lsearch.so: $(HDRS) lsearch.c
65 mysql.so: $(HDRS) mysql.c
67 nisplus.so: $(HDRS) nisplus.c
68 oracle.so: $(HDRS) oracle.c
69 passwd.so: $(HDRS) passwd.c
70 pgsql.so: $(HDRS) pgsql.c
71 redis.so: $(HDRS) redis.c
73 sqlite.so: $(HDRS) sqlite.c
74 testdb.so: $(HDRS) testdb.c
75 whoson.so: $(HDRS) whoson.c