| 
									
										
										
										
											2001-10-13 20:16:17 +00:00
										 |  |  | # 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
 | 
					
						
							| 
									
										
										
										
											2002-04-22 00:39:44 +00:00
										 |  |  | # as a result this requires linking with python23.lib, so it's of no use
 | 
					
						
							| 
									
										
										
										
											2001-10-13 20:16:17 +00:00
										 |  |  | # for bootstrapping (the cause appears to be a useless-- in this
 | 
					
						
							|  |  |  | # particular case --pragma in PC\pyconfig.h, which demands that
 | 
					
						
							| 
									
										
										
										
											2002-04-22 00:39:44 +00:00
										 |  |  | # python23.lib get linked in).
 | 
					
						
							| 
									
										
										
										
											2001-10-13 20:16:17 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-04-22 00:39:44 +00:00
										 |  |  | LIBS= ..\PCbuild\python23.lib | 
					
						
							| 
									
										
										
										
											2001-10-13 20:16:17 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-05-23 19:25:59 +00:00
										 |  |  | CFLAGS= /I ..\Include /I ..\PC /D MS_NO_COREDLL /MD | 
					
						
							| 
									
										
										
										
											2001-10-13 20:16:17 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | GRAMMAR_H= ..\Include\graminit.h | 
					
						
							|  |  |  | GRAMMAR_C= ..\Python\graminit.c | 
					
						
							|  |  |  | GRAMMAR_INPUT= ..\Grammar\Grammar | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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) |