PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 5XML=ffi.gcc-xml
 6HEADER=plugin/c/ffi_liberty.h
 7HEADERS=`dpkg -L libffi-dev | grep "\.h$$"`
 8
 9wrappers: $(XML)
10	@echo "Using dpkg to locate include files; please provide a portable way to locate them." $(HEADERS)
11	wrappers-generator --local $(XML) $(HEADERS)
12.PHONY: wrappers
13
14## Sorry for the Debianism
15
16$(XML):
17	pkg-config --exists libffi
18	gccxml `pkg-config --cflags libffi` $(HEADER) -fxml=$(XML)
19
20clean:
21	rm -f $(XML) ffi*.e plugin/c/plugin.[ch]
22.PHONY: clean