Commit | Line | Data |
---|---|---|
c1ac6996 | 1 | # $Cambridge: exim/src/src/pcre/Makefile,v 1.2 2005/05/17 09:53:35 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 | ||
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 | |
c1ac6996 PH |
21 | @echo "$(CC) -o pcretest" |
22 | $(FE)$(CC) $(CFLAGS) -o ../pcretest pcretest.o libpcre.a | |
c86f6258 PH |
23 | |
24 | libpcre.a: $(OBJ) | |
25 | -rm -f libpcre.a | |
c1ac6996 PH |
26 | @echo "$(AR) libpcre.a" |
27 | $(FE)$(AR) libpcre.a $(OBJ) | |
c86f6258 PH |
28 | $(RANLIB) libpcre.a |
29 | ||
30 | pcre.o: chartables.c pcre.c config.h pcre.h internal.h Makefile | |
c1ac6996 PH |
31 | @echo "$(CC) pcre.c" |
32 | $(FE)$(CC) -c $(CFLAGS) pcre.c | |
c86f6258 PH |
33 | |
34 | maketables.o: maketables.c config.h pcre.h internal.h Makefile | |
c1ac6996 PH |
35 | @echo "$(CC) maketables.c" |
36 | $(FE)$(CC) -c $(CFLAGS) maketables.c | |
c86f6258 PH |
37 | |
38 | get.o: get.c pcre.h config.h internal.h Makefile | |
c1ac6996 PH |
39 | @echo "$(CC) get.c" |
40 | $(FE)$(CC) -c $(CFLAGS) get.c | |
c86f6258 PH |
41 | |
42 | study.o: study.c pcre.h config.h internal.h Makefile | |
c1ac6996 PH |
43 | @echo "$(CC) study.c" |
44 | $(FE)$(CC) -c $(CFLAGS) study.c | |
c86f6258 PH |
45 | |
46 | pcretest.o: pcretest.c config.h pcre.h internal.h Makefile | |
c1ac6996 PH |
47 | @echo "$(CC) pcretest.c" |
48 | $(FE)$(CC) -c -DNOPOSIX $(CFLAGS) -I. pcretest.c | |
c86f6258 PH |
49 | |
50 | # An auxiliary program makes the default character table source | |
51 | ||
52 | chartables.c: dftables | |
53 | ./dftables chartables.c | |
54 | ||
55 | dftables: dftables.c maketables.c config.h pcre.h internal.h Makefile | |
c1ac6996 PH |
56 | @echo "$(CC) -o dftables dftables.c" |
57 | $(FE)$(CC) -o dftables $(CFLAGS) dftables.c | |
c86f6258 PH |
58 | |
59 | # End |