Tidy up "make" output along the lines of a 2.6 kernel make (just a short
[exim.git] / src / src / pcre / Makefile
1 # $Cambridge: exim/src/src/pcre/Makefile,v 1.2 2005/05/17 09:53:35 ph10 Exp $
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
11 CFLAGS =
12 RANLIB = @true
13
14 ##############################################################################
15
16 OBJ = maketables.o get.o pcre.o study.o
17
18 all:            libpcre.a ../pcretest
19
20 ../pcretest: libpcre.a pcretest.o
21                 @echo "$(CC) -o pcretest"
22                 $(FE)$(CC) $(CFLAGS) -o ../pcretest pcretest.o libpcre.a
23
24 libpcre.a:      $(OBJ)
25                 -rm -f libpcre.a
26                 @echo "$(AR) libpcre.a"
27                 $(FE)$(AR) libpcre.a $(OBJ)
28                 $(RANLIB) libpcre.a
29
30 pcre.o:         chartables.c pcre.c config.h pcre.h internal.h Makefile
31                 @echo "$(CC) pcre.c"
32                 $(FE)$(CC) -c $(CFLAGS) pcre.c
33
34 maketables.o:   maketables.c config.h pcre.h internal.h Makefile
35                 @echo "$(CC) maketables.c"
36                 $(FE)$(CC) -c $(CFLAGS) maketables.c
37
38 get.o:          get.c pcre.h config.h internal.h Makefile
39                 @echo "$(CC) get.c"
40                 $(FE)$(CC) -c $(CFLAGS) get.c
41
42 study.o:        study.c pcre.h config.h internal.h Makefile
43                 @echo "$(CC) study.c"
44                 $(FE)$(CC) -c $(CFLAGS) study.c
45
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
49
50 # An auxiliary program makes the default character table source
51
52 chartables.c:   dftables
53                 ./dftables chartables.c
54
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
58
59 # End