1 # $Cambridge: exim/src/src/pcre/Makefile,v 1.2 2005/05/17 09:53:35 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
= maketables.o
get.o pcre.o study.o
18 all: libpcre.a ..
/pcretest
20 ..
/pcretest
: libpcre.a pcretest.o
21 @echo
"$(CC) -o pcretest"
22 $(FE
)$(CC
) $(CFLAGS
) -o ..
/pcretest pcretest.o libpcre.a
26 @echo
"$(AR) libpcre.a"
27 $(FE
)$(AR
) libpcre.a
$(OBJ
)
30 pcre.o
: chartables.c pcre.c config.h pcre.h internal.h Makefile
32 $(FE
)$(CC
) -c
$(CFLAGS
) pcre.c
34 maketables.o
: maketables.c config.h pcre.h internal.h Makefile
35 @echo
"$(CC) maketables.c"
36 $(FE
)$(CC
) -c
$(CFLAGS
) maketables.c
38 get.o
: get.c pcre.h config.h internal.h Makefile
40 $(FE
)$(CC
) -c
$(CFLAGS
) get.c
42 study.o
: study.c pcre.h config.h internal.h Makefile
44 $(FE
)$(CC
) -c
$(CFLAGS
) study.c
46 pcretest.o
: pcretest.c config.h pcre.h internal.h Makefile
47 @echo
"$(CC) pcretest.c"
48 $(FE
)$(CC
) -c
-DNOPOSIX
$(CFLAGS
) -I. pcretest.c
50 # An auxiliary program makes the default character table source
52 chartables.c
: dftables
53 .
/dftables chartables.c
55 dftables
: dftables.c maketables.c config.h pcre.h internal.h Makefile
56 @echo
"$(CC) -o dftables dftables.c"
57 $(FE
)$(CC
) -o dftables
$(CFLAGS
) dftables.c