/[pcre]/code/tags/pcre-2.08/Makefile
ViewVC logotype

Contents of /code/tags/pcre-2.08/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (hide annotations) (download)
Sat Feb 24 21:38:53 2007 UTC (7 years, 8 months ago) by nigel
Original Path: code/trunk/Makefile
File size: 2274 byte(s)
Load pcre-2.03 into code/trunk.

1 nigel 3 # Make file for PCRE (Perl-Compatible Regular Expression) library.
2    
3 nigel 7 # Edit CC, CFLAGS, and RANLIB for your system.
4 nigel 3
5     # It is believed that RANLIB=ranlib is required for AIX, BSDI, FreeBSD, Linux,
6     # MIPS RISCOS, NetBSD, OpenBSD, Digital Unix, and Ultrix.
7    
8     # Use CFLAGS = -DUSE_BCOPY on SunOS4 and any other system that lacks the
9     # memmove() function, but has bcopy().
10    
11     # Use CFLAGS = -DSTRERROR_FROM_ERRLIST on SunOS4 and any other system that
12     # lacks the strerror() function, but can provide the equivalent by indexing
13     # into errlist.
14    
15 nigel 23 AR = ar cq
16 nigel 9 CC = gcc -O2 -Wall
17 nigel 3 CFLAGS =
18     RANLIB = @true
19    
20     ##########################################################################
21    
22 nigel 29 OBJ = maketables.o get.o study.o pcre.o
23 nigel 3
24     all: libpcre.a libpcreposix.a pcretest pgrep
25    
26     pgrep: libpcre.a pgrep.o
27     $(CC) $(CFLAGS) -o pgrep pgrep.o libpcre.a
28    
29     pcretest: libpcre.a libpcreposix.a pcretest.o
30 nigel 27 $(PURIFY) $(CC) $(CFLAGS) -o pcretest pcretest.o libpcre.a libpcreposix.a
31 nigel 3
32     libpcre.a: $(OBJ)
33 nigel 27 -rm -f libpcre.a
34 nigel 23 $(AR) libpcre.a $(OBJ)
35 nigel 3 $(RANLIB) libpcre.a
36    
37     libpcreposix.a: pcreposix.o
38 nigel 27 -rm -f libpcreposix.a
39 nigel 23 $(AR) libpcreposix.a pcreposix.o
40 nigel 3 $(RANLIB) libpcreposix.a
41    
42 nigel 25 pcre.o: chartables.c pcre.c pcre.h internal.h Makefile
43 nigel 3 $(CC) -c $(CFLAGS) pcre.c
44    
45 nigel 23 pcreposix.o: pcreposix.c pcreposix.h internal.h pcre.h Makefile
46 nigel 3 $(CC) -c $(CFLAGS) pcreposix.c
47    
48 nigel 25 maketables.o: maketables.c pcre.h internal.h Makefile
49     $(CC) -c $(CFLAGS) maketables.c
50 nigel 3
51 nigel 29 get.o: get.c pcre.h internal.h Makefile
52     $(CC) -c $(CFLAGS) get.c
53    
54 nigel 7 study.o: study.c pcre.h internal.h Makefile
55 nigel 3 $(CC) -c $(CFLAGS) study.c
56    
57 nigel 7 pcretest.o: pcretest.c pcre.h Makefile
58 nigel 3 $(CC) -c $(CFLAGS) pcretest.c
59    
60 nigel 7 pgrep.o: pgrep.c pcre.h Makefile
61 nigel 3 $(CC) -c $(CFLAGS) pgrep.c
62    
63 nigel 25 # An auxiliary program makes the default character table source
64 nigel 3
65 nigel 27 chartables.c: dftables
66     ./dftables >chartables.c
67 nigel 3
68 nigel 27 dftables: dftables.c maketables.c pcre.h internal.h Makefile
69     $(CC) -o dftables $(CFLAGS) dftables.c
70 nigel 3
71 nigel 27 # We deliberately omit dftables and chartables.c from 'make clean'; once made
72 nigel 3 # chartables.c shouldn't change, and if people have edited the tables by hand,
73     # you don't want to throw them away.
74    
75 nigel 27 clean:; -rm -f *.o *.a pcretest pgrep
76 nigel 3
77 nigel 7 runtest: all
78 nigel 23 ./RunTest
79 nigel 7
80 nigel 3 # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12