1 # $Cambridge: exim/src/src/pcre/Makefile,v 1.3 2005/06/15 08:57:10 ph10 Exp $
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
7 # These variables are in practice overridden from the Exim Makefile.
14 ##############################################################################
16 OBJ
= 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
20 all: libpcre.a ..
/pcretest
22 ..
/pcretest
: libpcre.a pcretest.o
23 $(CC
) $(CFLAGS
) -o ..
/pcretest pcretest.o libpcre.a
27 $(AR
) libpcre.a
$(OBJ
)
30 chartables.o
: chartables.c pcre_compile.c config.h pcre.h pcre_internal.h Makefile
31 $(CC
) -c
$(CFLAGS
) chartables.c
33 pcre_compile.o
: pcre_compile.c config.h pcre.h pcre_internal.h Makefile
34 $(CC
) -c
$(CFLAGS
) pcre_compile.c
36 pcre_config.o
: pcre_config.c config.h pcre.h pcre_internal.h Makefile
37 $(CC
) -c
$(CFLAGS
) pcre_config.c
39 pcre_exec.o
: chartables.c pcre_exec.c config.h pcre.h pcre_internal.h Makefile
40 $(CC
) -c
$(CFLAGS
) pcre_exec.c
42 pcre_maketables.o
: pcre_maketables.c config.h pcre.h pcre_internal.h Makefile
43 $(CC
) -c
$(CFLAGS
) pcre_maketables.c
45 pcre_fullinfo.o
: pcre_fullinfo.c pcre.h config.h pcre_internal.h Makefile
46 $(CC
) -c
$(CFLAGS
) pcre_fullinfo.c
48 pcre_get.o
: pcre_get.c pcre.h config.h pcre_internal.h Makefile
49 $(CC
) -c
$(CFLAGS
) pcre_get.c
51 pcre_globals.
: pcre_globals.c pcre.h config.h pcre_internal.h Makefile
52 $(CC
) -c
$(CFLAGS
) pcre_globals.c
54 pcre_printint.o
: pcre_printint.c pcre.h config.h pcre_internal.h Makefile
55 $(CC
) -c
$(CFLAGS
) pcre_printint.c
57 pcre_study.o
: pcre_study.c pcre.h config.h pcre_internal.h Makefile
58 $(CC
) -c
$(CFLAGS
) pcre_study.c
60 pcre_tables.o
: pcre_tables.c pcre.h config.h pcre_internal.h Makefile
61 $(CC
) -c
$(CFLAGS
) pcre_tables.c
63 pcre_try_flipped.o
: pcre_try_flipped.c pcre.h config.h pcre_internal.h Makefile
64 $(CC
) -c
$(CFLAGS
) pcre_try_flipped.c
66 pcre_version.o
: pcre_version.c config.h pcre.h pcre_internal.h Makefile
67 $(CC
) -c
$(CFLAGS
) pcre_version.c
69 pcretest.o
: pcretest.c config.h pcre.h pcre_internal.h Makefile
70 $(CC
) -c
-DNOPOSIX
-DNODFA
-DNOUTF8
-DNOINFOCHECK
$(CFLAGS
) -I. pcretest.c
72 # An auxiliary program makes the default character table source
74 chartables.c
: dftables
75 .
/dftables chartables.c
77 dftables
: dftables.c pcre_maketables.c config.h pcre.h pcre_internal.h Makefile
78 $(CC
) -o dftables
$(CFLAGS
) dftables.c