| 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 |
|
|
| 59 |
|
|
| 60 |
# An auxiliary program makes the default character table source |
# An auxiliary program makes the default character table source |
| 61 |
|
|
| 62 |
chartables.c: deftables |
chartables.c: dftables |
| 63 |
./deftables >chartables.c |
./dftables >chartables.c |
| 64 |
|
|
| 65 |
deftables: deftables.c maketables.c pcre.h internal.h Makefile |
dftables: dftables.c maketables.c pcre.h internal.h Makefile |
| 66 |
$(CC) -o deftables $(CFLAGS) deftables.c |
$(CC) -o dftables $(CFLAGS) dftables.c |
| 67 |
|
|
| 68 |
# We deliberately omit deftables and chartables.c from 'make clean'; once made |
# We deliberately omit dftables 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:; -rm -f *.o *.a pcretest pgrep |
| 73 |
|
|
| 74 |
runtest: all |
runtest: all |
| 75 |
./RunTest |
./RunTest |