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

Diff of /code/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.3  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.5