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@ |
| 12 | |
| 13 | |
| 14 | # === Other things that are customizable but not by configure === |
| 15 | |
| 16 | AR= ar |
| 17 | MKDEP= mkdep |
| 18 | SHELL= /bin/sh |
| 19 | |
| 20 | INCLDIR= $(srcdir)/../Py |
| 21 | OPT= -g |
| 22 | CFLAGS= $(OPT) -I$(INCLDIR) |
| 23 | |
| 24 | |
| 25 | # === Fixed definitions === |
| 26 | |
| 27 | PARSEROBJS= acceler.o fgetsintr.o grammar1.o \ |
| 28 | intrcheck.o listnode.o node.o parser.o \ |
| 29 | parsetok.o tokenizer.o bitset.o \ |
| 30 | firstsets.o grammar.o metagrammar.o pgen.o \ |
| 31 | printgrammar.o |
| 32 | |
| 33 | PGENOBJS= pgenmain.o |
| 34 | |
| 35 | PARSERSRCS= acceler.c fgetsintr.c grammar1.c \ |
| 36 | intrcheck.c listnode.c node.c parser.c \ |
| 37 | parsetok.c tokenizer.c bitset.c \ |
| 38 | firstsets.c grammar.c metagrammar.c pgen.c \ |
| 39 | printgrammar.c |
| 40 | |
| 41 | PGENSRCS= pgenmain.c |
| 42 | |
| 43 | PGEN= pgen |
| 44 | |
| 45 | LIB= libParser.a |
| 46 | |
| 47 | |
| 48 | # === Rules === |
| 49 | |
| 50 | all: $(LIB) $(PGEN) |
| 51 | |
| 52 | $(LIB): $(PARSEROBJS) |
| 53 | $(AR) cr $(LIB) $(PARSEROBJS) |
| 54 | |
| 55 | $(PGEN): $(PGENOBJS) $(LIB) |
| 56 | $(CC) $(PGENOBJS) $(LIB) -o $(PGEN) |
| 57 | |
| 58 | clean: |
| 59 | -rm -f $(PARSEROBJS) $(PGENOBJS) |
| 60 | -rm -f core *~ [@,#]* *.old *.orig *.rej |
| 61 | |
| 62 | clobber: clean |
| 63 | -rm -f $(PGEN) $(LIB) tags TAGS |
| 64 | |
| 65 | Makefile: Makefile.in ../config.status |
| 66 | (cd ..; $(SHELL) config.status) |
| 67 | |
| 68 | depend: $(PARSERSRCS) $(PGENSRCS) |
| 69 | $(MKDEP) $(CFLAGS) $(PARSERSRCS) $(PGENSRCS) |
| 70 | |
| 71 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 72 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 73 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |