/src/wrappers/xml/library/externals/Makefile

http://github.com/tybor/Liberty · Makefile · 15 lines · 7 code · 4 blank · 4 comment · 0 complexity · e7648d43f77b6a679e0561f7ccaf5b79 MD5 · raw file

  1. ## To avoid an Ubuntu Intrepid Ibex bug.
  2. ## See https://bugs.launchpad.net/ubuntu/+source/gccxml/+bug/293807 for further informations.
  3. ##GCCXML_COMPILER=gcc-4.2
  4. XML=libxml2.gcc-xml
  5. HEADER=libxml2-liberty.h
  6. HEADERS := $(shell pkg-config --cflags-only-I libxml-2.0| cut -c 3- |tr --delete '[:space:]' )/libxml/*
  7. ## The previous variable is computed from the output of pkg-config, removing the "-I"
  8. wrappers: $(XML)
  9. wrappers-generator --local $(XML) $(HEADERS)
  10. $(XML): $(HEADER)
  11. gccxml `pkg-config --cflags libxml-2.0` $(HEADER) -fxml=$(XML)