diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-26 18:44:49 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-26 18:44:49 +0000 |
commit | 4f2bd00b64b9e01f611be3fd6aa6a1349f146cb4 (patch) | |
tree | 85a6caf6f90d879fed225f0411b582f24f685498 | |
parent | d1f8ab7ea1c3269fc31a8141b3aa1eacdeed4b84 (diff) | |
download | libdom-4f2bd00b64b9e01f611be3fd6aa6a1349f146cb4.tar.gz libdom-4f2bd00b64b9e01f611be3fd6aa6a1349f146cb4.tar.bz2 |
Add lpu to the requirements
svn path=/trunk/dom/; revision=8021
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -16,6 +16,17 @@ WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \ CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \ -I$(CURDIR)/src $(WARNFLAGS) +# Parserutils +ifneq ($(findstring clean,$(MAKECMDGOALS)),clean) + ifneq ($(PKGCONFIG),) + CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils --cflags) + LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils --libs) + else + CFLAGS := $(CFLAGS) -I$(PREFIX)/include + LDFLAGS := $(LDFLAGS) -lparserutils + endif +endif + include build/makefiles/Makefile.top # Extra installation rules |