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 # nb: at build time, the version of this file used will have had some
6 # extra variable definitions and prepended to it and module build rules
9 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE
12 all: lookups.a lf_quote.o lf_check_file.o lf_sqlperform.o $(MODS)
15 @$(RM_COMMAND) -f lookups.a
16 @echo "$(AR) lookups.a"
17 @$(AR) lookups.a $(OBJ)
21 .c.o:; @echo "$(CC) $*.c"
22 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
24 .c.so:; @echo "$(CC) -shared $*.c"
25 $(FE)$(CC) $(LOOKUP_$*_INCLUDE) $(LOOKUP_$*_LIBS) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@
27 lf_check_file.o: $(PHDRS) lf_check_file.c lf_functions.h
28 lf_quote.o: $(PHDRS) lf_quote.c lf_functions.h
29 lf_sqlperform.o: $(PHDRS) lf_sqlperform.c lf_functions.h
32 dbmdb.o: $(PHDRS) dbmdb.c
33 dnsdb.o: $(PHDRS) dnsdb.c
34 dsearch.o: $(PHDRS) dsearch.c
35 ibase.o: $(PHDRS) ibase.c
36 ldap.o: $(PHDRS) ldap.c
37 lmdb.o: $(PHDRS) lmdb.c
38 json.o: $(PHDRS) json.c
39 lsearch.o: $(PHDRS) lsearch.c
40 mysql.o: $(PHDRS) mysql.c
42 nisplus.o: $(PHDRS) nisplus.c
43 oracle.o: $(PHDRS) oracle.c
44 passwd.o: $(PHDRS) passwd.c
45 pgsql.o: $(PHDRS) pgsql.c
46 redis.o: $(PHDRS) redis.c
48 sqlite.o: $(PHDRS) sqlite.c
49 testdb.o: $(PHDRS) testdb.c
50 whoson.o: $(PHDRS) whoson.c
52 cdb.so: $(PHDRS) cdb.c
53 dbmdb.so: $(PHDRS) dbmdb.c
54 dnsdb.so: $(PHDRS) dnsdb.c
55 dsearch.so: $(PHDRS) dsearch.c
56 ibase.so: $(PHDRS) ibase.c
57 json.so: $(PHDRS) json.c
58 ldap.so: $(PHDRS) ldap.c
59 lmdb.so: $(PHDRS) lmdb.c
60 lsearch.so: $(PHDRS) lsearch.c
61 mysql.so: $(PHDRS) mysql.c
62 nis.so: $(PHDRS) nis.c
63 nisplus.so: $(PHDRS) nisplus.c
64 oracle.so: $(PHDRS) oracle.c
65 passwd.so: $(PHDRS) passwd.c
66 pgsql.so: $(PHDRS) pgsql.c
67 redis.so: $(PHDRS) redis.c
68 spf.so: $(PHDRS) spf.c
69 sqlite.so: $(PHDRS) sqlite.c
70 testdb.so: $(PHDRS) testdb.c
71 whoson.so: $(PHDRS) whoson.c