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

Diff of /code/tags/pcre-2.05/Makefile

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

revision 23 by nigel, Sat Feb 24 21:38:41 2007 UTC revision 29 by nigel, Sat Feb 24 21:38:53 2007 UTC
# Line 19  RANLIB = @true Line 19  RANLIB = @true
19    
20  ##########################################################################  ##########################################################################
21    
22  OBJ = chartables.o study.o pcre.o  OBJ = maketables.o get.o study.o pcre.o
23    
24  all:            libpcre.a libpcreposix.a pcretest pgrep  all:            libpcre.a libpcreposix.a pcretest pgrep
25    
# Line 27  pgrep:          libpcre.a pgrep.o Line 27  pgrep:          libpcre.a pgrep.o
27                  $(CC) $(CFLAGS) -o pgrep pgrep.o libpcre.a                  $(CC) $(CFLAGS) -o pgrep pgrep.o libpcre.a
28    
29  pcretest:       libpcre.a libpcreposix.a pcretest.o  pcretest:       libpcre.a libpcreposix.a pcretest.o
30                  $(CC) $(CFLAGS) -o pcretest pcretest.o libpcre.a libpcreposix.a                  $(PURIFY) $(CC) $(CFLAGS) -o pcretest pcretest.o libpcre.a libpcreposix.a
31    
32  libpcre.a:      $(OBJ)  libpcre.a:      $(OBJ)
33                  /bin/rm -f libpcre.a                  -rm -f libpcre.a
34                  $(AR) 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                  -rm -f libpcreposix.a
39                  $(AR) 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 Makefile  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 pcre.h Makefile  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    get.o:          get.c pcre.h internal.h Makefile
52                    $(CC) -c $(CFLAGS) get.c
53    
54  study.o:        study.c pcre.h internal.h Makefile  study.o:        study.c pcre.h internal.h Makefile
55                  $(CC) -c $(CFLAGS) study.c                  $(CC) -c $(CFLAGS) study.c
# Line 57  pcretest.o:     pcretest.c pcre.h Makefi Line 60  pcretest.o:     pcretest.c pcre.h Makefi
60  pgrep.o:        pgrep.c pcre.h Makefile  pgrep.o:        pgrep.c pcre.h Makefile
61                  $(CC) -c $(CFLAGS) pgrep.c                  $(CC) -c $(CFLAGS) pgrep.c
62    
63  # An auxiliary program makes the character tables  # An auxiliary program makes the default character table source
64    
65  chartables.c:    maketables  chartables.c:   dftables
66                  ./maketables >chartables.c                  ./dftables >chartables.c
67    
68  maketables:     maketables.c Makefile  dftables:       dftables.c maketables.c pcre.h internal.h Makefile
69                  $(CC) -o maketables $(CFLAGS) maketables.c                  $(CC) -o dftables $(CFLAGS) dftables.c
70    
71  # We deliberately omit maketables and chartables.c from 'make clean'; once made  # We deliberately omit dftables and chartables.c from 'make clean'; once made
72  # 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,
73  # you don't want to throw them away.  # you don't want to throw them away.
74    
75  clean:;         /bin/rm -f *.o *.a pcretest pgrep  clean:;         -rm -f *.o *.a pcretest pgrep
76    
77  runtest:        all  runtest:        all
78                  ./RunTest                  ./RunTest

Legend:
Removed from v.23  
changed lines
  Added in v.29

  ViewVC Help
Powered by ViewVC 1.1.5