Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: third_party/yasm/patched-yasm/tools/python-yasm/Makefile.inc

Issue 6170009: Update our yasm copy to yasm 1.1.0 (Part 1: yasm side)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # $Id: Makefile.inc 1948 2007-09-13 02:53:30Z peter $ 1 # $Id: Makefile.inc 2256 2010-01-01 20:55:07Z peter $
2 2
3 PYBINDING_DEPS = tools/python-yasm/bytecode.pxi 3 PYBINDING_DEPS = tools/python-yasm/bytecode.pxi
4 PYBINDING_DEPS += tools/python-yasm/errwarn.pxi 4 PYBINDING_DEPS += tools/python-yasm/errwarn.pxi
5 PYBINDING_DEPS += tools/python-yasm/expr.pxi 5 PYBINDING_DEPS += tools/python-yasm/expr.pxi
6 PYBINDING_DEPS += tools/python-yasm/floatnum.pxi 6 PYBINDING_DEPS += tools/python-yasm/floatnum.pxi
7 PYBINDING_DEPS += tools/python-yasm/intnum.pxi 7 PYBINDING_DEPS += tools/python-yasm/intnum.pxi
8 PYBINDING_DEPS += tools/python-yasm/symrec.pxi 8 PYBINDING_DEPS += tools/python-yasm/symrec.pxi
9 PYBINDING_DEPS += tools/python-yasm/value.pxi 9 PYBINDING_DEPS += tools/python-yasm/value.pxi
10 10
11 EXTRA_DIST += tools/python-yasm/pyxelator/cparse.py 11 EXTRA_DIST += tools/python-yasm/pyxelator/cparse.py
(...skipping 21 matching lines...) Expand all
33 CLEANFILES += _yasm.pxi 33 CLEANFILES += _yasm.pxi
34 34
35 # Need to build a local copy of the main Pyrex input file to include _yasm.pxi 35 # Need to build a local copy of the main Pyrex input file to include _yasm.pxi
36 # from the build directory. Also need to fixup the other .pxi include paths. 36 # from the build directory. Also need to fixup the other .pxi include paths.
37 yasm.pyx: $(srcdir)/tools/python-yasm/yasm.pyx 37 yasm.pyx: $(srcdir)/tools/python-yasm/yasm.pyx
38 sed -e 's,^include "\([^_]\),include "${srcdir}/tools/python-yasm/\1,' \ 38 sed -e 's,^include "\([^_]\),include "${srcdir}/tools/python-yasm/\1,' \
39 $(srcdir)/tools/python-yasm/yasm.pyx > $@ 39 $(srcdir)/tools/python-yasm/yasm.pyx > $@
40 40
41 CLEANFILES += yasm.pyx 41 CLEANFILES += yasm.pyx
42 42
43 # Actually run Pyrex 43 # Actually run Cython
44 yasm_python.c: yasm.pyx _yasm.pxi $(PYBINDING_DEPS) 44 yasm_python.c: yasm.pyx _yasm.pxi $(PYBINDING_DEPS)
45 » $(PYTHON) -c "from Pyrex.Compiler.Main import main; main(command_line=1) " \ 45 » $(PYTHON) -c "from Cython.Compiler.Main import main; main(command_line=1 )" \
46 -o $@ yasm.pyx 46 -o $@ yasm.pyx
47 47
48 CLEANFILES += yasm_python.c 48 CLEANFILES += yasm_python.c
49 49
50 # Now the Python build magic... 50 # Now the Python build magic...
51 python-setup.txt: Makefile 51 python-setup.txt: Makefile
52 echo "includes=${DEFS} ${DEFAULT_INCLUDES} ${INCLUDES} ${AM_CPPFLAGS} ${ CPPFLAGS}" > python-setup.txt 52 echo "includes=${DEFS} ${DEFAULT_INCLUDES} ${INCLUDES} ${AM_CPPFLAGS} ${ CPPFLAGS}" > python-setup.txt
53 » echo "sources=${libyasm_a_SOURCES}" >> python-setup.txt 53 » echo "sources=${libyasm_a_SOURCES} ${nodist_libyasm_a_SOURCES}" >> pytho n-setup.txt
54 echo "srcdir=${srcdir}" >> python-setup.txt 54 echo "srcdir=${srcdir}" >> python-setup.txt
55 echo "gcc=${GCC}" >> python-setup.txt 55 echo "gcc=${GCC}" >> python-setup.txt
56 56
57 CLEANFILES += python-setup.txt 57 CLEANFILES += python-setup.txt
58 58
59 .python-build: python-setup.txt yasm_python.c ${libyasm_a_SOURCES} 59 .python-build: python-setup.txt yasm_python.c ${libyasm_a_SOURCES} ${nodist_liby asm_a_SOURCES}
60 $(PYTHON) `test -f tools/python-yasm/setup.py || echo '$(srcdir)/'`tools /python-yasm/setup.py build 60 $(PYTHON) `test -f tools/python-yasm/setup.py || echo '$(srcdir)/'`tools /python-yasm/setup.py build
61 touch .python-build 61 touch .python-build
62 python-build: .python-build 62 python-build: .python-build
63 63
64 CLEANFILES += .python-build 64 CLEANFILES += .python-build
65 65
66 python-install: .python-build 66 python-install: .python-build
67 $(PYTHON) `test -f tools/python-yasm/setup.py || echo '$(srcdir)/'`tools /python-yasm/setup.py install "--install-lib=$(DESTDIR)$(pythondir)" 67 $(PYTHON) `test -f tools/python-yasm/setup.py || echo '$(srcdir)/'`tools /python-yasm/setup.py install "--install-lib=$(DESTDIR)$(pythondir)"
68 68
69 python-uninstall: 69 python-uninstall:
70 rm -f `$(PYTHON) -c "import sys;sys.path.insert(0, '${DESTDIR}${pythondi r}'); import yasm; print yasm.__file__"` 70 rm -f `$(PYTHON) -c "import sys;sys.path.insert(0, '${DESTDIR}${pythondi r}'); import yasm; print yasm.__file__"`
71 71
72 else 72 else
73 73
74 python-build: 74 python-build:
75 python-install: 75 python-install:
76 python-uninstall: 76 python-uninstall:
77 77
78 endif 78 endif
79 79
80 EXTRA_DIST += tools/python-yasm/tests/Makefile.inc 80 EXTRA_DIST += tools/python-yasm/tests/Makefile.inc
81 include tools/python-yasm/tests/Makefile.inc 81 include tools/python-yasm/tests/Makefile.inc
OLDNEW
« no previous file with comments | « third_party/yasm/patched-yasm/tools/genperf/genperf.c ('k') | third_party/yasm/patched-yasm/tools/python-yasm/bytecode.pxi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698