1 # $Cambridge: exim/src/src/pcre/Makefile,v 1.8 2007/06/26 11:16:54 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 pcre_chartables.o pcre_fullinfo.o pcre_get.o \
17 pcre_globals.o pcre_compile.o pcre_config.o pcre_exec.o pcre_newline.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 @echo "$(CC) -o ../pcretest pcretest.o libpcre.a"
24 $(FE)$(CC) $(CFLAGS) -I. -o ../pcretest pcretest.o libpcre.a
28 @echo "$(AR) libpcre.a"
29 $(FE)$(AR) libpcre.a $(OBJ)
32 pcre_chartables.o: pcre_chartables.c pcre_compile.c config.h pcre.h pcre_internal.h Makefile
33 @echo "$(CC) pcre_chartables.c"
34 $(FE)$(CC) -c $(CFLAGS) -I. pcre_chartables.c
36 pcre_compile.o: pcre_compile.c config.h pcre.h pcre_internal.h Makefile
37 @echo "$(CC) pcre_compile.c"
38 $(FE)$(CC) -c $(CFLAGS) -I. pcre_compile.c
40 pcre_config.o: pcre_config.c config.h pcre.h pcre_internal.h Makefile
41 @echo "$(CC) pcre_config.c"
42 $(FE)$(CC) -c $(CFLAGS) -I. pcre_config.c
44 pcre_exec.o: pcre_chartables.c pcre_exec.c config.h pcre.h pcre_internal.h Makefile
45 @echo "$(CC) pcre_exec.c"
46 $(FE)$(CC) -c $(CFLAGS) -I. pcre_exec.c
48 pcre_maketables.o: pcre_maketables.c config.h pcre.h pcre_internal.h Makefile
49 @echo "$(CC) pcre_maketables.c"
50 $(FE)$(CC) -c $(CFLAGS) pcre_maketables.c
52 pcre_fullinfo.o: pcre_fullinfo.c pcre.h config.h pcre_internal.h Makefile
53 @echo "$(CC) pcre_fullinfo.c"
54 $(FE)$(CC) -c $(CFLAGS) -I. pcre_fullinfo.c
56 pcre_get.o: pcre_get.c pcre.h config.h pcre_internal.h Makefile
57 @echo "$(CC) pcre_get.c"
58 $(FE)$(CC) -c $(CFLAGS) -I. pcre_get.c
60 pcre_globals.o: pcre_globals.c pcre.h config.h pcre_internal.h Makefile
61 @echo "$(CC) pcre_globals.c"
62 $(FE)$(CC) -c $(CFLAGS) -I. pcre_globals.c
64 pcre_newline.o: pcre_newline.c pcre.h config.h pcre_internal.h Makefile
65 @echo "$(CC) pcre_newline.c"
66 $(FE)$(CC) -c $(CFLAGS) -I. pcre_newline.c
68 pcre_study.o: pcre_study.c pcre.h config.h pcre_internal.h Makefile
69 @echo "$(CC) pcre_study.c"
70 $(FE)$(CC) -c $(CFLAGS) -I. pcre_study.c
72 pcre_tables.o: pcre_tables.c pcre.h config.h pcre_internal.h Makefile
73 @echo "$(CC) pcre_tables.c"
74 $(FE)$(CC) -c $(CFLAGS) -I. pcre_tables.c
76 pcre_try_flipped.o: pcre_try_flipped.c pcre.h config.h pcre_internal.h Makefile
77 @echo "$(CC) pcre_try_flipped.c"
78 $(FE)$(CC) -c $(CFLAGS) -I. pcre_try_flipped.c
80 pcre_version.o: pcre_version.c config.h pcre.h pcre_internal.h Makefile
81 @echo "$(CC) pcre_version.c"
82 $(FE)$(CC) -c $(CFLAGS) -I. pcre_version.c
84 pcretest.o: pcretest.c config.h pcre.h pcre_internal.h Makefile
85 @echo "$(CC) pcretest.c"
86 $(FE)$(CC) -c -DNOPOSIX -DNODFA -DNOUTF8 -DNOINFOCHECK $(CFLAGS) -I. pcretest.c