blob: 08775fa34c8af49600111222d1f5d2ec59988333 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
CFLAGS = -Wall -g
PCRE_CONFIG = pcre-config
#PCRE_CONFIG = pkg-config libpcre
PCRE_CFLAGS := $(shell $(PCRE_CONFIG) --cflags)
PCRE_LIBS := $(shell $(PCRE_CONFIG) --libs)
LIBS = $(PCRE_LIBS)
GNUMAKE4 = $(MAKE)
.PHONY: check clean
pcre.so: pcre.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(MAKE_CFLAGS) -fPIC \
$(LDFLAGS) -shared -o $@ $< $(LIBS)
check: pcre.so
$(GNUMAKE4) -k -f tests.mk
clean:
$(RM) *.o *.so
|