Added -dd for daemon debugging.
[exim.git] / src / src / pcre / Makefile
CommitLineData
c86f6258
PH
1# $Cambridge: exim/src/src/pcre/Makefile,v 1.1 2004/10/07 13:04:13 ph10 Exp $
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
16OBJ = maketables.o get.o pcre.o study.o
17
18all: libpcre.a ../pcretest
19
20../pcretest: libpcre.a pcretest.o
21 $(CC) $(CFLAGS) -o ../pcretest pcretest.o libpcre.a
22
23libpcre.a: $(OBJ)
24 -rm -f libpcre.a
25 $(AR) libpcre.a $(OBJ)
26 $(RANLIB) libpcre.a
27
28pcre.o: chartables.c pcre.c config.h pcre.h internal.h Makefile
29 $(CC) -c $(CFLAGS) pcre.c
30
31maketables.o: maketables.c config.h pcre.h internal.h Makefile
32 $(CC) -c $(CFLAGS) maketables.c
33
34get.o: get.c pcre.h config.h internal.h Makefile
35 $(CC) -c $(CFLAGS) get.c
36
37study.o: study.c pcre.h config.h internal.h Makefile
38 $(CC) -c $(CFLAGS) study.c
39
40pcretest.o: pcretest.c config.h pcre.h internal.h Makefile
41 $(CC) -c -DNOPOSIX $(CFLAGS) -I. pcretest.c
42
43# An auxiliary program makes the default character table source
44
45chartables.c: dftables
46 ./dftables chartables.c
47
48dftables: dftables.c maketables.c config.h pcre.h internal.h Makefile
49 $(CC) -o dftables $(CFLAGS) dftables.c
50
51# End