Mercurial > yaffs-ecoscentric
diff direct/python/Makefile @ 320:e239e0b8c57d
Full change over to ctypes
| author | charles |
|---|---|
| date | Tue, 13 Oct 2009 00:05:49 +0100 |
| parents | 3ef58b114b5e |
| children |
line wrap: on
line diff
--- a/direct/python/Makefile +++ b/direct/python/Makefile @@ -36,7 +36,6 @@ COMMONTESTOBJS = yaffscfg2k.o yaffs_ecc. yaffs_norif1.o ynorsim.o -YAFFSSWIGOBJS = $(COMMONTESTOBJS) yaffs_wrap.o yaffs_python_helper.o YAFFSLIBOBJS = $(COMMONTESTOBJS) yaffs_python_helper.o @@ -56,27 +55,12 @@ YAFFSDIRECTSYMLINKS = yaffscfg2k.c yaff SYMLINKS = $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS) -all: _yaffs.so libyaffsfs.so - -yaffs_wrap.c: yaffs.i yaffsfs_for_swig.h - swig -python yaffs.i +all: libyaffsfs.so -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/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" \ - > $@ $(YAFFSLIBOBJS): %.o: %.c gcc -c $(CFLAGS) -o $@ $< -yaffs_wrap.o: %.o: %.c - gcc -c $(CFLAGS) -I/usr/include/python2.6/ -o $@ $< - $(YAFFSSYMLINKS): ln -s ../../$@ $@ @@ -86,9 +70,6 @@ yaffs_wrap.o: %.o: %.c -_yaffs.so: $(SYMLINKS) yaffs_wrap.c $(YAFFSSWIGOBJS) - gcc -shared $(YAFFSSWIGOBJS) -o $@ - libyaffsfs.so: $(SYMLINKS) $(YAFFSLIBOBJS) gcc -shared $(YAFFSLIBOBJS) -o $@ @@ -96,8 +77,6 @@ libyaffsfs.so: $(SYMLINKS) $(YAFFSLIBOBJ clean: - rm -f _yaffs.so yaffs.py yaffs.pyc yaffs_wrap.c $(YAFFSLIBOBJS) yaffs_wrap.o core $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS) - rm -f *.c.* - rm -f yaffsfs_for_swig.h + rm -f $(YAFFSLIBOBJS) core $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS) rm -f libyaffsfs.so
