1 # $Cambridge: exim/src/src/lookups/Makefile,v 1.9 2009/06/10 07:34:05 tom Exp $
3 # nb: at build time, the version of this file used will have had some
4 # extra variable definitions and prepended to it and module build rules
7 # Make file for building all the available lookups.
8 # This is called from the main make file, after cd'ing
9 # to the lookups subdirectory.
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 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
47 sqlite.o: $(HDRS) sqlite.c
48 testdb.o: $(HDRS) testdb.c
49 whoson.o: $(HDRS) whoson.c
52 dbmdb.so: $(HDRS) dbmdb.c
53 dnsdb.so: $(HDRS) dnsdb.c
54 dsearch.so: $(HDRS) dsearch.c
55 ibase.so: $(HDRS) ibase.c
56 ldap.so: $(HDRS) ldap.c
57 lsearch.so: $(HDRS) lsearch.c
58 mysql.so: $(HDRS) mysql.c
60 nisplus.so: $(HDRS) nisplus.c
61 oracle.so: $(HDRS) oracle.c
62 passwd.so: $(HDRS) passwd.c
63 pgsql.so: $(HDRS) pgsql.c
65 sqlite.so: $(HDRS) sqlite.c
66 testdb.so: $(HDRS) testdb.c
67 whoson.so: $(HDRS) whoson.c