/[pcre]/code/trunk/Makefile
ViewVC logotype

Contents of /code/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23 - (hide annotations) (download)
Sat Feb 24 21:38:41 2007 UTC (7 years, 6 months ago) by nigel
File size: 2121 byte(s)
Load pcre-2.00 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     OBJ = chartables.o study.o pcre.o
23    
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     $(CC) $(CFLAGS) -o pcretest pcretest.o libpcre.a libpcreposix.a
31    
32     libpcre.a: $(OBJ)
33     /bin/rm -f libpcre.a
34 nigel 23 $(AR) libpcre.a $(OBJ)
35 nigel 3 $(RANLIB) libpcre.a
36    
37     libpcreposix.a: pcreposix.o
38     /bin/rm -f libpcreposix.a
39 nigel 23 $(AR) libpcreposix.a pcreposix.o
40 nigel 3 $(RANLIB) libpcreposix.a
41    
42 nigel 7 pcre.o: 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     chartables.o: chartables.c
49     $(CC) -c $(CFLAGS) chartables.c
50    
51 nigel 7 study.o: study.c pcre.h internal.h Makefile
52 nigel 3 $(CC) -c $(CFLAGS) study.c
53    
54 nigel 7 pcretest.o: pcretest.c pcre.h Makefile
55 nigel 3 $(CC) -c $(CFLAGS) pcretest.c
56    
57 nigel 7 pgrep.o: pgrep.c pcre.h Makefile
58 nigel 3 $(CC) -c $(CFLAGS) pgrep.c
59    
60     # An auxiliary program makes the character tables
61    
62     chartables.c: maketables
63     ./maketables >chartables.c
64    
65 nigel 7 maketables: maketables.c Makefile
66 nigel 3 $(CC) -o maketables $(CFLAGS) maketables.c
67    
68     # We deliberately omit maketables and chartables.c from 'make clean'; once made
69     # chartables.c shouldn't change, and if people have edited the tables by hand,
70     # you don't want to throw them away.
71    
72     clean:; /bin/rm -f *.o *.a pcretest pgrep
73    
74 nigel 7 runtest: all
75 nigel 23 ./RunTest
76 nigel 7
77 nigel 3 # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12