Commit | Line | Data |
---|---|---|
f53dbcfc | 1 | # $Cambridge: exim/src/src/pcre/Makefile,v 1.9 2007/06/29 08:49:17 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 | |
f53dbcfc | 11 | CFLAGS = |
c86f6258 PH |
12 | RANLIB = @true |
13 | ||
14 | ############################################################################## | |
15 | ||
64f2600a | 16 | OBJ = pcre_maketables.o pcre_chartables.o pcre_fullinfo.o pcre_get.o \ |
6bf342e1 | 17 | pcre_globals.o pcre_compile.o pcre_config.o pcre_exec.o pcre_newline.o \ |
8ac170f3 | 18 | pcre_study.o pcre_tables.o pcre_try_flipped.o pcre_version.o |
c86f6258 PH |
19 | |
20 | all: libpcre.a ../pcretest | |
21 | ||
22 | ../pcretest: libpcre.a pcretest.o | |
63845676 | 23 | @echo "$(CC) -o ../pcretest pcretest.o libpcre.a" |
f53dbcfc | 24 | $(FE)$(CC) $(CFLAGS) -o ../pcretest pcretest.o libpcre.a |
c86f6258 PH |
25 | |
26 | libpcre.a: $(OBJ) | |
27 | -rm -f libpcre.a | |
63845676 PH |
28 | @echo "$(AR) libpcre.a" |
29 | $(FE)$(AR) libpcre.a $(OBJ) | |
c86f6258 PH |
30 | $(RANLIB) libpcre.a |
31 | ||
64f2600a PH |
32 | pcre_chartables.o: pcre_chartables.c pcre_compile.c config.h pcre.h pcre_internal.h Makefile |
33 | @echo "$(CC) pcre_chartables.c" | |
f53dbcfc | 34 | $(FE)$(CC) -c $(CFLAGS) pcre_chartables.c |
c86f6258 | 35 | |
8ac170f3 | 36 | pcre_compile.o: pcre_compile.c config.h pcre.h pcre_internal.h Makefile |
63845676 | 37 | @echo "$(CC) pcre_compile.c" |
f53dbcfc | 38 | $(FE)$(CC) -c $(CFLAGS) pcre_compile.c |
c86f6258 | 39 | |
8ac170f3 | 40 | pcre_config.o: pcre_config.c config.h pcre.h pcre_internal.h Makefile |
63845676 | 41 | @echo "$(CC) pcre_config.c" |
f53dbcfc | 42 | $(FE)$(CC) -c $(CFLAGS) pcre_config.c |
c86f6258 | 43 | |
64f2600a | 44 | pcre_exec.o: pcre_chartables.c pcre_exec.c config.h pcre.h pcre_internal.h Makefile |
63845676 | 45 | @echo "$(CC) pcre_exec.c" |
f53dbcfc | 46 | $(FE)$(CC) -c $(CFLAGS) pcre_exec.c |
c86f6258 | 47 | |
8ac170f3 | 48 | pcre_maketables.o: pcre_maketables.c config.h pcre.h pcre_internal.h Makefile |
f53dbcfc | 49 | @echo "$(CC) pcre_maketables.c" |
63845676 | 50 | $(FE)$(CC) -c $(CFLAGS) pcre_maketables.c |
8ac170f3 PH |
51 | |
52 | pcre_fullinfo.o: pcre_fullinfo.c pcre.h config.h pcre_internal.h Makefile | |
63845676 | 53 | @echo "$(CC) pcre_fullinfo.c" |
f53dbcfc | 54 | $(FE)$(CC) -c $(CFLAGS) pcre_fullinfo.c |
8ac170f3 PH |
55 | |
56 | pcre_get.o: pcre_get.c pcre.h config.h pcre_internal.h Makefile | |
63845676 | 57 | @echo "$(CC) pcre_get.c" |
f53dbcfc | 58 | $(FE)$(CC) -c $(CFLAGS) pcre_get.c |
8ac170f3 | 59 | |
99a4b039 | 60 | pcre_globals.o: pcre_globals.c pcre.h config.h pcre_internal.h Makefile |
63845676 | 61 | @echo "$(CC) pcre_globals.c" |
f53dbcfc | 62 | $(FE)$(CC) -c $(CFLAGS) pcre_globals.c |
8ac170f3 | 63 | |
6bf342e1 PH |
64 | pcre_newline.o: pcre_newline.c pcre.h config.h pcre_internal.h Makefile |
65 | @echo "$(CC) pcre_newline.c" | |
f53dbcfc | 66 | $(FE)$(CC) -c $(CFLAGS) pcre_newline.c |
6bf342e1 | 67 | |
8ac170f3 | 68 | pcre_study.o: pcre_study.c pcre.h config.h pcre_internal.h Makefile |
63845676 | 69 | @echo "$(CC) pcre_study.c" |
f53dbcfc | 70 | $(FE)$(CC) -c $(CFLAGS) pcre_study.c |
8ac170f3 | 71 | |
63845676 PH |
72 | pcre_tables.o: pcre_tables.c pcre.h config.h pcre_internal.h Makefile |
73 | @echo "$(CC) pcre_tables.c" | |
f53dbcfc | 74 | $(FE)$(CC) -c $(CFLAGS) pcre_tables.c |
8ac170f3 PH |
75 | |
76 | pcre_try_flipped.o: pcre_try_flipped.c pcre.h config.h pcre_internal.h Makefile | |
63845676 | 77 | @echo "$(CC) pcre_try_flipped.c" |
f53dbcfc | 78 | $(FE)$(CC) -c $(CFLAGS) pcre_try_flipped.c |
8ac170f3 PH |
79 | |
80 | pcre_version.o: pcre_version.c config.h pcre.h pcre_internal.h Makefile | |
63845676 | 81 | @echo "$(CC) pcre_version.c" |
f53dbcfc | 82 | $(FE)$(CC) -c $(CFLAGS) pcre_version.c |
8ac170f3 PH |
83 | |
84 | pcretest.o: pcretest.c config.h pcre.h pcre_internal.h Makefile | |
63845676 | 85 | @echo "$(CC) pcretest.c" |
f53dbcfc | 86 | $(FE)$(CC) -c -DNOPOSIX -DNODFA -DNOUTF8 -DNOINFOCHECK $(CFLAGS) pcretest.c |
c86f6258 | 87 | |
c86f6258 | 88 | # End |