Michael Haardt's patch to update Sieve to RFC3028bis.
[exim.git] / src / src / pcre / Makefile
CommitLineData
8ac170f3 1# $Cambridge: exim/src/src/pcre/Makefile,v 1.3 2005/06/15 08:57:10 ph10 Exp $
c86f6258
PH
2
3# Makefile for PCRE (Perl-Compatible Regular Expression) library for use by
4# Exim. This is a tailored Makefile, not the normal one that comes with the
5# PCRE distribution.
6
7# These variables are in practice overridden from the Exim Makefile.
8
9AR = ar cq
10CC = gcc -O2 -Wall
11CFLAGS =
12RANLIB = @true
13
14##############################################################################
15
8ac170f3
PH
16OBJ = pcre_maketables.o chartables.o pcre_fullinfo.o pcre_get.o \
17 pcre_globals.o pcre_compile.o pcre_config.o pcre_exec.o pcre_printint.o \
18 pcre_study.o pcre_tables.o pcre_try_flipped.o pcre_version.o
c86f6258
PH
19
20all: libpcre.a ../pcretest
21
22../pcretest: libpcre.a pcretest.o
8ac170f3 23 $(CC) $(CFLAGS) -o ../pcretest pcretest.o libpcre.a
c86f6258
PH
24
25libpcre.a: $(OBJ)
26 -rm -f libpcre.a
8ac170f3 27 $(AR) libpcre.a $(OBJ)
c86f6258
PH
28 $(RANLIB) libpcre.a
29
8ac170f3
PH
30chartables.o: chartables.c pcre_compile.c config.h pcre.h pcre_internal.h Makefile
31 $(CC) -c $(CFLAGS) chartables.c
c86f6258 32
8ac170f3
PH
33pcre_compile.o: pcre_compile.c config.h pcre.h pcre_internal.h Makefile
34 $(CC) -c $(CFLAGS) pcre_compile.c
c86f6258 35
8ac170f3
PH
36pcre_config.o: pcre_config.c config.h pcre.h pcre_internal.h Makefile
37 $(CC) -c $(CFLAGS) pcre_config.c
c86f6258 38
8ac170f3
PH
39pcre_exec.o: chartables.c pcre_exec.c config.h pcre.h pcre_internal.h Makefile
40 $(CC) -c $(CFLAGS) pcre_exec.c
c86f6258 41
8ac170f3
PH
42pcre_maketables.o: pcre_maketables.c config.h pcre.h pcre_internal.h Makefile
43 $(CC) -c $(CFLAGS) pcre_maketables.c
44
45pcre_fullinfo.o: pcre_fullinfo.c pcre.h config.h pcre_internal.h Makefile
46 $(CC) -c $(CFLAGS) pcre_fullinfo.c
47
48pcre_get.o: pcre_get.c pcre.h config.h pcre_internal.h Makefile
49 $(CC) -c $(CFLAGS) pcre_get.c
50
51pcre_globals.: pcre_globals.c pcre.h config.h pcre_internal.h Makefile
52 $(CC) -c $(CFLAGS) pcre_globals.c
53
54pcre_printint.o: pcre_printint.c pcre.h config.h pcre_internal.h Makefile
55 $(CC) -c $(CFLAGS) pcre_printint.c
56
57pcre_study.o: pcre_study.c pcre.h config.h pcre_internal.h Makefile
58 $(CC) -c $(CFLAGS) pcre_study.c
59
60pcre_tables.o: pcre_tables.c pcre.h config.h pcre_internal.h Makefile
61 $(CC) -c $(CFLAGS) pcre_tables.c
62
63pcre_try_flipped.o: pcre_try_flipped.c pcre.h config.h pcre_internal.h Makefile
64 $(CC) -c $(CFLAGS) pcre_try_flipped.c
65
66pcre_version.o: pcre_version.c config.h pcre.h pcre_internal.h Makefile
67 $(CC) -c $(CFLAGS) pcre_version.c
68
69pcretest.o: pcretest.c config.h pcre.h pcre_internal.h Makefile
70 $(CC) -c -DNOPOSIX -DNODFA -DNOUTF8 -DNOINFOCHECK $(CFLAGS) -I. pcretest.c
c86f6258
PH
71
72# An auxiliary program makes the default character table source
73
74chartables.c: dftables
75 ./dftables chartables.c
76
8ac170f3
PH
77dftables: dftables.c pcre_maketables.c config.h pcre.h pcre_internal.h Makefile
78 $(CC) -o dftables $(CFLAGS) dftables.c
c86f6258
PH
79
80# End