projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More test stuff
[yaffs2.git]
/
direct
/
python
/
Makefile
diff --git
a/direct/python/Makefile
b/direct/python/Makefile
index 98b726c38bae0f74f90fa9486b3197e7c830d093..f9f42b80977cc626cdf00a1d2db4be6f6a28ed76 100644
(file)
--- a/
direct/python/Makefile
+++ b/
direct/python/Makefile
@@
-14,7
+14,7
@@
#
# NB Warning this Makefile does not include header dependencies.
#
#
# NB Warning this Makefile does not include header dependencies.
#
-# $Id: Makefile,v 1.
1 2009-10-08 01:58:52
charles Exp $
+# $Id: Makefile,v 1.
4 2009-10-12 23:05:49
charles Exp $
#EXTRA_COMPILE_FLAGS = -DYAFFS_IGNORE_TAGS_ECC
#EXTRA_COMPILE_FLAGS = -DYAFFS_IGNORE_TAGS_ECC
@@
-36,10
+36,9
@@
COMMONTESTOBJS = yaffscfg2k.o yaffs_ecc.o yaffs_fileem.o yaffs_fileem2k.o yaffsf
yaffs_norif1.o ynorsim.o
yaffs_norif1.o ynorsim.o
-YAFFS
TESTOBJS = $(COMMONTESTOBJS) yaffs_wrap.o yaffs_swig
_helper.o
+YAFFS
LIBOBJS = $(COMMONTESTOBJS) yaffs_python
_helper.o
-ALLOBJS = $(sort $(YAFFSTESTOBJS))
YAFFSSYMLINKS = devextras.h yaffs_ecc.c yaffs_ecc.h yaffs_guts.c yaffs_guts.h yaffsinterface.h yportenv.h yaffs_tagscompat.c yaffs_tagscompat.h \
yaffs_packedtags1.c yaffs_packedtags1.h yaffs_packedtags2.c yaffs_packedtags2.h yaffs_nandemul2k.h \
YAFFSSYMLINKS = devextras.h yaffs_ecc.c yaffs_ecc.h yaffs_guts.c yaffs_guts.h yaffsinterface.h yportenv.h yaffs_tagscompat.c yaffs_tagscompat.h \
yaffs_packedtags1.c yaffs_packedtags1.h yaffs_packedtags2.c yaffs_packedtags2.h yaffs_nandemul2k.h \
@@
-56,16
+55,11
@@
YAFFSDIRECTSYMLINKS = yaffscfg2k.c yaffs_fileem2k.c yaffsfs.c yaffs_flashif.h y
SYMLINKS = $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS)
SYMLINKS = $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS)
-all:
_yaf
fs.so
+all:
libyaffs
fs.so
-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" > $@
-
-$(ALLOBJS): %.o: %.c
- gcc -c $(CFLAGS) -I/usr/include/python2.6/ -o $@ $<
+$(YAFFSLIBOBJS): %.o: %.c
+ gcc -c $(CFLAGS) -o $@ $<
$(YAFFSSYMLINKS):
$(YAFFSSYMLINKS):
@@
-76,13
+70,13
@@
$(YAFFSDIRECTSYMLINKS):
-
_yaffs.so: $(SYMLINKS) yaffs_wrap.c $(ALL
OBJS)
- gcc -shared $(
ALL
OBJS) -o $@
+
libyaffsfs.so: $(SYMLINKS) $(YAFFSLIB
OBJS)
+ gcc -shared $(
YAFFSLIB
OBJS) -o $@
clean:
clean:
- rm -f
_yaffs.so yaffs.py yaffs.pyc yaffs_wrap.c $(ALLOBJS)
core $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS)
- rm -f
*.c.*
- rm -f yaffsfs_for_swig.h
+ rm -f
$(YAFFSLIBOBJS)
core $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS)
+ rm -f
libyaffsfs.so
+