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