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
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
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
34 dbmdb.o: $(HDRS) dbmdb.c
35 dnsdb.o: $(HDRS) dnsdb.c
36 dsearch.o: $(HDRS) dsearch.c
37 ibase.o: $(HDRS) ibase.c
38 ldap.o: $(HDRS) ldap.c
39 lmdb.o: $(HDRS) lmdb.c
40 json.o: $(HDRS) json.c
41 lsearch.o: $(HDRS) lsearch.c
42 mysql.o: $(HDRS) mysql.c
44 nisplus.o: $(HDRS) nisplus.c
45 oracle.o: $(HDRS) oracle.c
46 passwd.o: $(HDRS) passwd.c
47 pgsql.o: $(HDRS) pgsql.c
48 readsock.o: $(HDRS) readsock.c
49 redis.o: $(HDRS) redis.c
51 sqlite.o: $(HDRS) sqlite.c
52 testdb.o: $(HDRS) testdb.c
53 whoson.o: $(HDRS) whoson.c
56 dbmdb.so: $(HDRS) dbmdb.c
57 dnsdb.so: $(HDRS) dnsdb.c
58 dsearch.so: $(HDRS) dsearch.c
59 ibase.so: $(HDRS) ibase.c
60 json.so: $(HDRS) json.c
61 ldap.so: $(HDRS) ldap.c
62 lmdb.so: $(HDRS) lmdb.c
63 lsearch.so: $(HDRS) lsearch.c
64 mysql.so: $(HDRS) mysql.c
66 nisplus.so: $(HDRS) nisplus.c
67 oracle.so: $(HDRS) oracle.c
68 passwd.so: $(HDRS) passwd.c
69 pgsql.so: $(HDRS) pgsql.c
70 redis.so: $(HDRS) redis.c
72 sqlite.so: $(HDRS) sqlite.c
73 testdb.so: $(HDRS) testdb.c
74 whoson.so: $(HDRS) whoson.c