Tidy up "make" output along the lines of a 2.6 kernel make (just a short
[exim.git] / src / src / pcre / Makefile
CommitLineData
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
9AR = ar cq
10CC = gcc -O2 -Wall
11CFLAGS =
12RANLIB = @true
13
14##############################################################################
15
16OBJ = maketables.o get.o pcre.o study.o
17
18all: 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
24libpcre.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
30pcre.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
34maketables.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
38get.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
42study.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
46pcretest.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
52chartables.c: dftables
53 ./dftables chartables.c
54
55dftables: 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