summaryrefslogtreecommitdiff
path: root/bindings/hubbub/Makefile
blob: 946219df51fc7e7e9f5d7ae8f2a1f50280db8a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ifeq ($(WITH_HUBBUB_BINDING),yes)
  DIR_SOURCES := parser.c

  DIR_INSTALL_ITEMS := /include/dom/bindings/hubbub:errors.h;parser.h

  # Hubbub
  ifneq ($(PKGCONFIG),)
    CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libhubbub --cflags)
    LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libhubbub --libs)
  else
    CFLAGS := $(CFLAGS) -I$(PREFIX)/include
    LDFLAGS := $(LDFLAGS) -lhubbub -lparserutils
  endif
endif

include $(NSBUILD)/Makefile.subdir