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 lsearch.o: $(PHDRS) lsearch.c
39 mysql.o: $(PHDRS) mysql.c
41 nisplus.o: $(PHDRS) nisplus.c
42 oracle.o: $(PHDRS) oracle.c
43 passwd.o: $(PHDRS) passwd.c
44 pgsql.o: $(PHDRS) pgsql.c
45 redis.o: $(PHDRS) redis.c
47 sqlite.o: $(PHDRS) sqlite.c
48 testdb.o: $(PHDRS) testdb.c
49 whoson.o: $(PHDRS) whoson.c
51 cdb.so: $(PHDRS) cdb.c
52 dbmdb.so: $(PHDRS) dbmdb.c
53 dnsdb.so: $(PHDRS) dnsdb.c
54 dsearch.so: $(PHDRS) dsearch.c
55 ibase.so: $(PHDRS) ibase.c
56 ldap.so: $(PHDRS) ldap.c
57 lmdb.so: $(PHDRS) lmdb.c
58 lsearch.so: $(PHDRS) lsearch.c
59 mysql.so: $(PHDRS) mysql.c
60 nis.so: $(PHDRS) nis.c
61 nisplus.so: $(PHDRS) nisplus.c
62 oracle.so: $(PHDRS) oracle.c
63 passwd.so: $(PHDRS) passwd.c
64 pgsql.so: $(PHDRS) pgsql.c
65 redis.so: $(PHDRS) redis.c
66 spf.so: $(PHDRS) spf.c
67 sqlite.so: $(PHDRS) sqlite.c
68 testdb.so: $(PHDRS) testdb.c
69 whoson.so: $(PHDRS) whoson.c