Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
eba84cda
Commit
eba84cda
authored
Oct 13, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
An MSVC makefile to rebuild the grammar files (graminit.[ch]) manually.
Ugly, but it works.
parent
d396b9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
Parser/grammar.mak
Parser/grammar.mak
+42
-0
No files found.
Parser/grammar.mak
0 → 100644
View file @
eba84cda
# This manages to rebuild graminit.{h, c} under MSVC 6 (Windows), via
#
# nmake /f grammar.mak
#
# The intermediate files can be nuked afterwards:
#
# nmake /f grammar.mak clean
#
# I don't understand the maze of preprocessor #define's on Windows, and
# as a result this requires linking with python22.lib, so it's of no use
# for bootstrapping (the cause appears to be a useless-- in this
# particular case --pragma in PC\pyconfig.h, which demands that
# python22.lib get linked in).
LIBS
=
..
\P
Cbuild
\p
ython22.lib
CFLAGS
=
/I ..
\I
nclude /I ..
\P
C /D MS_NO_COREDLL
GRAMMAR_H
=
..
\I
nclude
\g
raminit.h
GRAMMAR_C
=
..
\P
ython
\g
raminit.c
GRAMMAR_INPUT
=
..
\G
rammar
\G
rammar
PGEN
=
pgen.exe
POBJS
=
acceler.obj grammar1.obj listnode.obj node.obj parser.obj
\
parsetok.obj tokenizer.obj bitset.obj metagrammar.obj
PARSER_OBJS
=
$(POBJS)
myreadline.obj
PGOBJS
=
firstsets.obj grammar.obj pgen.obj printgrammar.obj pgenmain.obj
PGENOBJS
=
$(POBJS)
$(PGOBJS)
$(GRAMMAR_H) $(GRAMMAR_C)
:
$(PGEN) $(GRAMMAR_INPUT)
$(PGEN)
$(GRAMMAR_INPUT)
$(GRAMMAR_H)
$(GRAMMAR_C)
$(PGEN)
:
$(PGENOBJS)
$(CC)
$(PGENOBJS)
$(LIBS)
/Fe
$(PGEN)
clean
:
del
*.obj
del
$(PGEN)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment