Makefile: Use pcre-config to get include/lib paths etc
This commit is contained in:
parent
979f3b051c
commit
b69ad0fefc
6
Makefile
6
Makefile
|
@ -10,11 +10,11 @@ ifndef CXXFLAGS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_RULES),yes)
|
ifeq ($(HAVE_RULES),yes)
|
||||||
CXXFLAGS += -DHAVE_RULES
|
CXXFLAGS += -DHAVE_RULES $(shell pcre-config --cflags)
|
||||||
ifdef LIBS
|
ifdef LIBS
|
||||||
LIBS += -lpcre
|
LIBS += $(shell pcre-config --libs)
|
||||||
else
|
else
|
||||||
LIBS=-lpcre
|
LIBS=$(shell pcre-config --libs)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -239,11 +239,11 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
fout << "ifeq ($(HAVE_RULES),yes)\n"
|
fout << "ifeq ($(HAVE_RULES),yes)\n"
|
||||||
<< " CXXFLAGS += -DHAVE_RULES\n"
|
<< " CXXFLAGS += -DHAVE_RULES $(shell pcre-config --cflags)\n"
|
||||||
<< " ifdef LIBS\n"
|
<< " ifdef LIBS\n"
|
||||||
<< " LIBS += -lpcre\n"
|
<< " LIBS += $(shell pcre-config --libs)\n"
|
||||||
<< " else\n"
|
<< " else\n"
|
||||||
<< " LIBS=-lpcre\n"
|
<< " LIBS=$(shell pcre-config --libs)\n"
|
||||||
<< " endif\n"
|
<< " endif\n"
|
||||||
<< "endif\n\n";
|
<< "endif\n\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue