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: $(HDRS) lf_check_file.c lf_functions.h
28 lf_quote.o: $(HDRS) lf_quote.c lf_functions.h
29 lf_sqlperform.o: $(HDRS) lf_sqlperform.c lf_functions.h
32 dbmdb.o: $(HDRS) dbmdb.c
33 dnsdb.o: $(HDRS) dnsdb.c
34 dsearch.o: $(HDRS) dsearch.c
35 ibase.o: $(HDRS) ibase.c
36 ldap.o: $(HDRS) ldap.c
37 lmdb.o: $(HDRS) lmdb.c
38 json.o: $(HDRS) json.c
39 lsearch.o: $(HDRS) lsearch.c
40 mysql.o: $(HDRS) mysql.c
42 nisplus.o: $(HDRS) nisplus.c
43 oracle.o: $(HDRS) oracle.c
44 passwd.o: $(HDRS) passwd.c
45 pgsql.o: $(HDRS) pgsql.c
46 readsock.o: $(HDRS) readsock.c
47 redis.o: $(HDRS) redis.c
49 sqlite.o: $(HDRS) sqlite.c
50 testdb.o: $(HDRS) testdb.c
51 whoson.o: $(HDRS) whoson.c
54 dbmdb.so: $(HDRS) dbmdb.c
55 dnsdb.so: $(HDRS) dnsdb.c
56 dsearch.so: $(HDRS) dsearch.c
57 ibase.so: $(HDRS) ibase.c
58 json.so: $(HDRS) json.c
59 ldap.so: $(HDRS) ldap.c
60 lmdb.so: $(HDRS) lmdb.c
61 lsearch.so: $(HDRS) lsearch.c
62 mysql.so: $(HDRS) mysql.c
64 nisplus.so: $(HDRS) nisplus.c
65 oracle.so: $(HDRS) oracle.c
66 passwd.so: $(HDRS) passwd.c
67 pgsql.so: $(HDRS) pgsql.c
68 redis.so: $(HDRS) redis.c
70 sqlite.so: $(HDRS) sqlite.c
71 testdb.so: $(HDRS) testdb.c
72 whoson.so: $(HDRS) whoson.c