Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 1 | # NOTE: Makefile.in is converted into Makefile by the configure script |
| 2 | # in the parent directory. Once configure has run, you can recreate |
| 3 | # the Makefile by running just config.status. |
| 4 | |
| 5 | # === Variables set by config.stat === |
| 6 | |
| 7 | srcdir= @srcdir@ |
| 8 | VPATH= @srcdir@ |
| 9 | |
| 10 | CC= @CC@ |
| 11 | RANLIB= @RANLIB@ |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 12 | DEFS= @DEFS@ |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 13 | |
| 14 | |
| 15 | # === Other things that are customizable but not by configure === |
| 16 | |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 17 | TOP= .. |
| 18 | INCLDIR= $(TOP)/Py |
| 19 | OPT= -g |
| 20 | CFLAGS= $(OPT) -I$(INCLDIR) $(DEFS) |
| 21 | |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 22 | AR= ar |
| 23 | MKDEP= mkdep |
| 24 | SHELL= /bin/sh |
| 25 | |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 26 | |
| 27 | # === Fixed definitions === |
| 28 | |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 29 | PARSEROBJS= acceler.o grammar1.o \ |
| 30 | intrcheck.o listnode.o myreadline.o node.o parser.o \ |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 31 | parsetok.o tokenizer.o bitset.o \ |
| 32 | firstsets.o grammar.o metagrammar.o pgen.o \ |
| 33 | printgrammar.o |
| 34 | |
| 35 | PGENOBJS= pgenmain.o |
| 36 | |
| 37 | PARSERSRCS= acceler.c fgetsintr.c grammar1.c \ |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 38 | intrcheck.c listnode.c myreadline.c node.c parser.c \ |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 39 | parsetok.c tokenizer.c bitset.c \ |
| 40 | firstsets.c grammar.c metagrammar.c pgen.c \ |
| 41 | printgrammar.c |
| 42 | |
| 43 | PGENSRCS= pgenmain.c |
| 44 | |
| 45 | PGEN= pgen |
| 46 | |
| 47 | LIB= libParser.a |
| 48 | |
| 49 | |
| 50 | # === Rules === |
| 51 | |
| 52 | all: $(LIB) $(PGEN) |
| 53 | |
| 54 | $(LIB): $(PARSEROBJS) |
| 55 | $(AR) cr $(LIB) $(PARSEROBJS) |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 56 | $(RANLIB) $(LIB) |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 57 | |
| 58 | $(PGEN): $(PGENOBJS) $(LIB) |
| 59 | $(CC) $(PGENOBJS) $(LIB) -o $(PGEN) |
| 60 | |
| 61 | clean: |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 62 | -rm -f *.o core *~ [@,#]* *.old *.orig *.rej |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 63 | |
| 64 | clobber: clean |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 65 | -rm -f $(PGEN) *.a tags TAGS |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 66 | |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 67 | Makefile: Makefile.in $(TOP)/config.status |
| 68 | CONFIG_FILES=Makefile $(SHELL) $(TOP)/config.status |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 69 | |
| 70 | depend: $(PARSERSRCS) $(PGENSRCS) |
| 71 | $(MKDEP) $(CFLAGS) $(PARSERSRCS) $(PGENSRCS) |
| 72 | |
| 73 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 74 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 75 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |