ASCII NUL in desc of $body_zerocount (keyword grepability)
[exim.git] / src / src / lookups / Makefile
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.
4
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
7 # interpolated below.
8
9 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE
10
11
12 all: lookups.a lf_quote.o lf_check_file.o lf_sqlperform.o $(MODS)
13
14 lookups.a: $(OBJ)
15 @$(RM_COMMAND) -f lookups.a
16 @echo "$(AR) lookups.a"
17 @$(AR) lookups.a $(OBJ)
18 $(RANLIB) $@
19
20 .SUFFIXES: .o .c .so
21 .c.o:; @echo "$(CC) $*.c"
22 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
23
24 .c.so:; @echo "$(CC) -shared $*.c"
25 $(FE)$(CC) $(LOOKUP_$*_INCLUDE) $(LOOKUP_$*_LIBS) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@
26
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
30
31 cdb.o: $(HDRS) cdb.c
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 lsearch.o: $(HDRS) lsearch.c
38 mysql.o: $(HDRS) mysql.c
39 nis.o: $(HDRS) nis.c
40 nisplus.o: $(HDRS) nisplus.c
41 oracle.o: $(HDRS) oracle.c
42 passwd.o: $(HDRS) passwd.c
43 pgsql.o: $(HDRS) pgsql.c
44 spf.o: $(HDRS) spf.c
45 sqlite.o: $(HDRS) sqlite.c
46 testdb.o: $(HDRS) testdb.c
47 whoson.o: $(HDRS) whoson.c
48
49 cdb.so: $(HDRS) cdb.c
50 dbmdb.so: $(HDRS) dbmdb.c
51 dnsdb.so: $(HDRS) dnsdb.c
52 dsearch.so: $(HDRS) dsearch.c
53 ibase.so: $(HDRS) ibase.c
54 ldap.so: $(HDRS) ldap.c
55 lsearch.so: $(HDRS) lsearch.c
56 mysql.so: $(HDRS) mysql.c
57 nis.so: $(HDRS) nis.c
58 nisplus.so: $(HDRS) nisplus.c
59 oracle.so: $(HDRS) oracle.c
60 passwd.so: $(HDRS) passwd.c
61 pgsql.so: $(HDRS) pgsql.c
62 spf.so: $(HDRS) spf.c
63 sqlite.so: $(HDRS) sqlite.c
64 testdb.so: $(HDRS) testdb.c
65 whoson.so: $(HDRS) whoson.c
66
67 # End