Mercurial > yaffs-ecoscentric
changeset 318:0b4bc5c0868e
More SWIG pythonry
| author | charles |
|---|---|
| date | Fri, 09 Oct 2009 00:11:12 +0100 |
| parents | 43c9f5f8b5c6 |
| children | 3ef58b114b5e |
| files | direct/python/Makefile direct/python/yaffs_swig_helper.c |
| diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/direct/python/Makefile +++ b/direct/python/Makefile @@ -62,7 +62,14 @@ yaffs_wrap.c: yaffs.i yaffsfs_for_swig.h swig -python yaffs.i yaffsfs_for_swig.h: yaffsfs.h - cat yaffsfs.h | sed -e "s/YCHAR/char/g" | sed -e "s/YUCHAR/unsigned char/g" | sed -e "s/struct yaffs_stat/struct yaffs_stat_struct/g" > $@ + cat yaffsfs.h | \ + sed -e "s/YCHAR/char/g" | \ + sed -e "s/YUCHAR/unsigned char/g" | \ + sed -e "s/void \*/char \*/g" | \ + sed -e "s/loff_t/long long/g" | \ + sed -e "s/off_t/long/g" | \ + sed -e "s/struct yaffs_stat/struct yaffs_stat_struct/g" \ + > $@ $(ALLOBJS): %.o: %.c gcc -c $(CFLAGS) -I/usr/include/python2.6/ -o $@ $<
