/src/wrappers/ffi/library/externals/Makefile

http://github.com/tybor/Liberty · Makefile · 22 lines · 13 code · 5 blank · 4 comment · 0 complexity · c742095bb9515f76c3b196455a16a0ca 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. ##export GCCXML_COMPILER = gcc-4.4
  4. XML=ffi.gcc-xml
  5. HEADER=plugin/c/ffi_liberty.h
  6. HEADERS=`dpkg -L libffi-dev | grep "\.h$$"`
  7. wrappers: $(XML)
  8. @echo "Using dpkg to locate include files; please provide a portable way to locate them." $(HEADERS)
  9. wrappers-generator --local $(XML) $(HEADERS)
  10. .PHONY: wrappers
  11. ## Sorry for the Debianism
  12. $(XML):
  13. pkg-config --exists libffi
  14. gccxml `pkg-config --cflags libffi` $(HEADER) -fxml=$(XML)
  15. clean:
  16. rm -f $(XML) ffi*.e plugin/c/plugin.[ch]
  17. .PHONY: clean