blob: 25a4e856acc0b7ac1df912e48129db7fa06a3341 (
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:
$(GNUMAKE4) -k -f tests.mk
clean:
$(RM) *.o *.so
|