Start
[exim.git] / src / src / lookups / Makefile
1 # $Cambridge: exim/src/src/lookups/Makefile,v 1.1 2004/10/07 13:10:01 ph10 Exp $
2
3 # Make file for building a library containing all the available lookups and
4 # calling it lookups.a. This is called from the main make file, after cd'ing
5 # to the lookups subdirectory. When the relevant LOOKUP_ macros are not
6 # defined, dummy modules get compiled.
7
8 OBJ = cdb.o dbmdb.o dnsdb.o dsearch.o ibase.o ldap.o lsearch.o mysql.o nis.o \
9 nisplus.o oracle.o passwd.o pgsql.o testdb.o whoson.o lf_check_file.o \
10 lf_quote.o
11
12 lookups.a: $(OBJ)
13 /bin/rm -f lookups.a
14 $(AR) lookups.a $(OBJ)
15 $(RANLIB) $@
16 /bin/rm -rf ../drtables.o
17
18 .SUFFIXES: .o .c
19 .c.o:; $(CC) -c $(CFLAGS) $(INCLUDE) $*.c
20
21 lf_check_file.o: $(HDRS) lf_check_file.c lf_functions.h
22 lf_quote.o: $(HDRS) lf_quote.c lf_functions.h
23
24 cdb.o: $(HDRS) cdb.c cdb.h
25 dbmdb.o: $(HDRS) dbmdb.c dbmdb.h
26 dnsdb.o: $(HDRS) dnsdb.c dnsdb.h
27 dsearch.o: $(HDRS) dsearch.c dsearch.h
28 ibase.o: $(HDRS) ibase.c ibase.h
29 ldap.o: $(HDRS) ldap.c ldap.h
30 lsearch.o: $(HDRS) lsearch.c lsearch.h
31 mysql.o: $(HDRS) mysql.c mysql.h
32 nis.o: $(HDRS) nis.c nis.h
33 nisplus.o: $(HDRS) nisplus.c nisplus.h
34 oracle.o: $(HDRS) oracle.c oracle.h
35 passwd.o: $(HDRS) passwd.c passwd.h
36 pgsql.o: $(HDRS) pgsql.c pgsql.h
37 testdb.o: $(HDRS) testdb.c testdb.h
38 whoson.o: $(HDRS) whoson.c whoson.h
39
40 # End