/src/wrappers/llvm/library/externals/Makefile
http://github.com/tybor/Liberty · Makefile · 24 lines · 13 code · 6 blank · 5 comment · 0 complexity · a67cbc8f1921c7ab66d859e70b83e157 MD5 · raw file
- XML=llvm.gcc-xml
- HEADER=plugin/c/llvm-liberty.h
- HEADERS=`llvm-config --includedir`/llvm-c/*
- LLVM_VERSION=`llvm-config --version`
- .PHONY: clean
- wrappers: $(XML)
- wrappers_generator --verbose $(XML) $(HEADERS)
- $(XML):
- @echo "Using LLVM $(LLVM_VERSION)"
- gccxml `llvm-config --cppflags` $(HEADER) -fxml=$(XML)
- ## Sometimes gccxml cannot process sources behaving like the default compiler.
- ## We force it to try to behave like versions known to work until it finds one that is actually available.
- ## See https://bugs.launchpad.net/ubuntu/+source/gccxml/+bug/293807 for further informations.
- ## gccxml --gccxml-compiler gcc-4.2 `llvm-config --cflags all` $(HEADER) -fxml=$(XML) || \
- ## gccxml --gccxml-compiler gcc-4.1 `llvm-config --cflags all` $(HEADER) -fxml=$(XML)
- clean:
- @echo Removing generated files
- rm $(XML) *.e