Commit | Line | Data |
---|---|---|
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 | ||
9 | AR = ar cq | |
10 | CC = gcc -O2 -Wall | |
11 | CFLAGS = | |
12 | RANLIB = @true | |
13 | ||
14 | ############################################################################## | |
15 | ||
16 | OBJ = maketables.o get.o pcre.o study.o | |
17 | ||
18 | all: libpcre.a ../pcretest | |
19 | ||
20 | ../pcretest: libpcre.a pcretest.o | |
21 | $(CC) $(CFLAGS) -o ../pcretest pcretest.o libpcre.a | |
22 | ||
23 | libpcre.a: $(OBJ) | |
24 | -rm -f libpcre.a | |
25 | $(AR) libpcre.a $(OBJ) | |
26 | $(RANLIB) libpcre.a | |
27 | ||
28 | pcre.o: chartables.c pcre.c config.h pcre.h internal.h Makefile | |
29 | $(CC) -c $(CFLAGS) pcre.c | |
30 | ||
31 | maketables.o: maketables.c config.h pcre.h internal.h Makefile | |
32 | $(CC) -c $(CFLAGS) maketables.c | |
33 | ||
34 | get.o: get.c pcre.h config.h internal.h Makefile | |
35 | $(CC) -c $(CFLAGS) get.c | |
36 | ||
37 | study.o: study.c pcre.h config.h internal.h Makefile | |
38 | $(CC) -c $(CFLAGS) study.c | |
39 | ||
40 | pcretest.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 | ||
45 | chartables.c: dftables | |
46 | ./dftables chartables.c | |
47 | ||
48 | dftables: dftables.c maketables.c config.h pcre.h internal.h Makefile | |
49 | $(CC) -o dftables $(CFLAGS) dftables.c | |
50 | ||
51 | # End |