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

/src/wrappers/posix/library/externals/Makefile

http://github.com/tybor/Liberty
Makefile | 23 lines | 10 code | 5 blank | 8 comment | 0 complexity | 791a73095e076e4099ba2ab11e181bbe 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.5
 4
 5XML=posix.gcc-xml
 6HEADER=plugin/c/liberty-posix.h
 7HEADERS=/usr/include/fcntl.h \
 8	/usr/include/sys/mman.h \
 9	/usr/include/unistd.h \
10    /usr/include/*/*
11
12wrappers: $(XML)
13	wrappers-generator --local $(XML) $(HEADERS)
14
15$(XML): $(HEADER)
16	gccxml $(HEADER) -fxml=$(XML)
17
18## Ideally here we should make wrappers for include files not already wrapped in common wrapper cluster using a command like
19## (gcc -M ../../../common/library/externals/plugin/c/standard-c-lib.h; gcc -M plugin/c/liberty-posix.h)|sort |uniq --repeated 
20## i.e. print the dependecies of standard-c-lib.g and liberty-posix.h, sort
21## them and leave only the lines that are not repeated. Too bad gcc insist putting
22## more than one file on each line and using make syntax.... 
23