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 | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 12 | AR= @AR@ |
| 13 | |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame] | 14 | DEFS= @DEFS@ |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 15 | |
| 16 | |
| 17 | # === Other things that are customizable but not by configure === |
| 18 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 19 | INCLDIR= $(srcdir)/../Include |
Guido van Rossum | d250ee2 | 1994-08-23 13:38:57 +0000 | [diff] [blame] | 20 | OPT= @OPT@ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 21 | CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS) |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame] | 22 | |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 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 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 37 | OBJS= $(PGENOBJS) $(PARSEROBJS) |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 38 | |
| 39 | PGEN= pgen |
| 40 | |
| 41 | LIB= libParser.a |
| 42 | |
| 43 | |
| 44 | # === Rules === |
| 45 | |
| 46 | all: $(LIB) $(PGEN) |
| 47 | |
Guido van Rossum | 087579e | 1995-01-17 16:11:29 +0000 | [diff] [blame] | 48 | $(LIB): $& $(PARSEROBJS) |
Guido van Rossum | d250ee2 | 1994-08-23 13:38:57 +0000 | [diff] [blame] | 49 | -rm -f $(LIB) |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 50 | $(AR) cr $(LIB) $(PARSEROBJS) |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame] | 51 | $(RANLIB) $(LIB) |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 52 | |
| 53 | $(PGEN): $(PGENOBJS) $(LIB) |
Guido van Rossum | 0e3da7b | 1994-08-29 10:44:10 +0000 | [diff] [blame] | 54 | $(CC) $(OPT) $(PGENOBJS) $(LIB) -o $(PGEN) |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 55 | |
| 56 | clean: |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame] | 57 | -rm -f *.o core *~ [@,#]* *.old *.orig *.rej |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 58 | |
| 59 | clobber: clean |
Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame] | 60 | -rm -f $(PGEN) *.a tags TAGS |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 61 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 62 | Makefile: $(srcdir)/Makefile.in ../config.status |
| 63 | (cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \ |
| 64 | $(SHELL) config.status) |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 65 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 66 | depend: |
| 67 | $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \ |
| 68 | sed 's|\(.*\)\.o|$(srcdir)/\1.c|'` |
| 69 | |
| 70 | .PRECIOUS: Makefile |
| 71 | |
| 72 | acceler.o: acceler.c |
| 73 | grammar1.o: grammar1.c |
| 74 | intrcheck.o: intrcheck.c |
| 75 | listnode.o: listnode.c |
| 76 | myreadline.o: myreadline.c |
| 77 | node.o: node.c |
| 78 | parser.o: parser.c |
| 79 | parsetok.o: parsetok.c |
| 80 | tokenizer.o: tokenizer.c |
| 81 | bitset.o: bitset.c |
| 82 | firstsets.o: firstsets.c |
| 83 | grammar.o: grammar.c |
| 84 | metagrammar.o: metagrammar.c |
| 85 | pgen.o: pgen.c |
| 86 | printgrammar.o: printgrammar.c |
| 87 | pgenmain.o: pgenmain.c |
Guido van Rossum | badac73 | 1993-12-20 10:52:46 +0000 | [diff] [blame] | 88 | |
| 89 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 90 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 91 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |