/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
- ## To avoid an Ubuntu Intrepid Ibex bug.
- ## See https://bugs.launchpad.net/ubuntu/+source/gccxml/+bug/293807 for further informations.
- ##export GCCXML_COMPILER = gcc-4.4
- XML=ffi.gcc-xml
- HEADER=plugin/c/ffi_liberty.h
- HEADERS=`dpkg -L libffi-dev | grep "\.h$$"`
- wrappers: $(XML)
- @echo "Using dpkg to locate include files; please provide a portable way to locate them." $(HEADERS)
- wrappers-generator --local $(XML) $(HEADERS)
- .PHONY: wrappers
- ## Sorry for the Debianism
- $(XML):
- pkg-config --exists libffi
- gccxml `pkg-config --cflags libffi` $(HEADER) -fxml=$(XML)
- clean:
- rm -f $(XML) ffi*.e plugin/c/plugin.[ch]
- .PHONY: clean