diff direct/python/Makefile @ 318:0b4bc5c0868e

More SWIG pythonry
author charles
date Fri, 09 Oct 2009 00:11:12 +0100
parents b644e5e824f4
children 3ef58b114b5e
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 $@ $<