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