Mercurial > cpython-lru_cache-weakref
annotate Parser/grammar.mak @ 54294:dba767bc3155 legacy-trunk
remove mention of old ctypes version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 May 2009 20:59:09 +0000 |
| parents | 1c4d192f1568 |
| children |
| rev | line source |
|---|---|
|
20424
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
1 # This manages to rebuild graminit.{h, c} under MSVC 6 (Windows), via |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
2 # |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
3 # nmake /f grammar.mak |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
4 # |
|
29506
db4312947494
SF bug 751956: graminit.[ch] don't build on windows
Tim Peters <tim.peters@gmail.com>
parents:
23527
diff
changeset
|
5 # You may also need to copy python23.dll into this directory, or get |
|
db4312947494
SF bug 751956: graminit.[ch] don't build on windows
Tim Peters <tim.peters@gmail.com>
parents:
23527
diff
changeset
|
6 # it on your search path. |
|
db4312947494
SF bug 751956: graminit.[ch] don't build on windows
Tim Peters <tim.peters@gmail.com>
parents:
23527
diff
changeset
|
7 # |
|
20424
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
8 # The intermediate files can be nuked afterwards: |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
9 # |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
10 # nmake /f grammar.mak clean |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
11 # |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
12 # I don't understand the maze of preprocessor #define's on Windows, and |
|
23209
6b2af6dafe7c
Update the Windows makefile for 2.3.
Tim Peters <tim.peters@gmail.com>
parents:
20424
diff
changeset
|
13 # as a result this requires linking with python23.lib, so it's of no use |
|
20424
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
14 # for bootstrapping (the cause appears to be a useless-- in this |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
15 # particular case --pragma in PC\pyconfig.h, which demands that |
|
23209
6b2af6dafe7c
Update the Windows makefile for 2.3.
Tim Peters <tim.peters@gmail.com>
parents:
20424
diff
changeset
|
16 # python23.lib get linked in). |
|
20424
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
17 |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
29506
diff
changeset
|
18 LIBS= ..\PCbuild\python25.lib |
|
20424
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
19 |
|
29506
db4312947494
SF bug 751956: graminit.[ch] don't build on windows
Tim Peters <tim.peters@gmail.com>
parents:
23527
diff
changeset
|
20 CFLAGS= /I ..\Include /I ..\PC /D MS_NO_COREDLL /D PGEN /MD |
|
20424
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
21 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
22 GRAMMAR_H= ..\Include\graminit.h |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
23 GRAMMAR_C= ..\Python\graminit.c |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
24 GRAMMAR_INPUT= ..\Grammar\Grammar |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
25 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
26 PGEN= pgen.exe |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
27 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
28 POBJS= acceler.obj grammar1.obj listnode.obj node.obj parser.obj \ |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
29 parsetok.obj tokenizer.obj bitset.obj metagrammar.obj |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
30 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
31 PARSER_OBJS= $(POBJS) myreadline.obj |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
32 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
33 PGOBJS= firstsets.obj grammar.obj pgen.obj printgrammar.obj pgenmain.obj |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
34 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
35 PGENOBJS= $(POBJS) $(PGOBJS) |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
36 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
37 $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT) |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
38 $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
39 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
40 $(PGEN): $(PGENOBJS) |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
41 $(CC) $(PGENOBJS) $(LIBS) /Fe$(PGEN) |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
42 |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
43 clean: |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
44 del *.obj |
|
6da03718c133
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
45 del $(PGEN) |
