blob: 1b8f1f8b63e7ff301cc9bb94a803e110ac83604f [file] [log] [blame]
Guido van Rossumbadac731993-12-20 10:52:46 +00001# 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
7srcdir= @srcdir@
8VPATH= @srcdir@
9
10CC= @CC@
11RANLIB= @RANLIB@
Guido van Rossumb6775db1994-08-01 11:34:53 +000012AR= @AR@
13
Guido van Rossum6fa63431993-12-24 10:36:57 +000014DEFS= @DEFS@
Guido van Rossumbadac731993-12-20 10:52:46 +000015
16
17# === Other things that are customizable but not by configure ===
18
Guido van Rossumb6775db1994-08-01 11:34:53 +000019INCLDIR= $(srcdir)/../Include
Guido van Rossumd250ee21994-08-23 13:38:57 +000020OPT= @OPT@
Guido van Rossumb6775db1994-08-01 11:34:53 +000021CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
Guido van Rossum6fa63431993-12-24 10:36:57 +000022
Guido van Rossumbadac731993-12-20 10:52:46 +000023MKDEP= mkdep
24SHELL= /bin/sh
25
Guido van Rossumbadac731993-12-20 10:52:46 +000026
27# === Fixed definitions ===
28
Guido van Rossum6fa63431993-12-24 10:36:57 +000029PARSEROBJS= acceler.o grammar1.o \
30 intrcheck.o listnode.o myreadline.o node.o parser.o \
Guido van Rossumbadac731993-12-20 10:52:46 +000031 parsetok.o tokenizer.o bitset.o \
32 firstsets.o grammar.o metagrammar.o pgen.o \
33 printgrammar.o
34
35PGENOBJS= pgenmain.o
36
Guido van Rossumb6775db1994-08-01 11:34:53 +000037OBJS= $(PGENOBJS) $(PARSEROBJS)
Guido van Rossumbadac731993-12-20 10:52:46 +000038
39PGEN= pgen
40
41LIB= libParser.a
42
43
44# === Rules ===
45
46all: $(LIB) $(PGEN)
47
Guido van Rossum087579e1995-01-17 16:11:29 +000048$(LIB): $& $(PARSEROBJS)
Guido van Rossumd250ee21994-08-23 13:38:57 +000049 -rm -f $(LIB)
Guido van Rossumbadac731993-12-20 10:52:46 +000050 $(AR) cr $(LIB) $(PARSEROBJS)
Guido van Rossum6fa63431993-12-24 10:36:57 +000051 $(RANLIB) $(LIB)
Guido van Rossumbadac731993-12-20 10:52:46 +000052
53$(PGEN): $(PGENOBJS) $(LIB)
Guido van Rossum0e3da7b1994-08-29 10:44:10 +000054 $(CC) $(OPT) $(PGENOBJS) $(LIB) -o $(PGEN)
Guido van Rossumbadac731993-12-20 10:52:46 +000055
56clean:
Guido van Rossum6fa63431993-12-24 10:36:57 +000057 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
Guido van Rossumbadac731993-12-20 10:52:46 +000058
59clobber: clean
Guido van Rossum6fa63431993-12-24 10:36:57 +000060 -rm -f $(PGEN) *.a tags TAGS
Guido van Rossumbadac731993-12-20 10:52:46 +000061
Guido van Rossumb6775db1994-08-01 11:34:53 +000062Makefile: $(srcdir)/Makefile.in ../config.status
63 (cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \
64 $(SHELL) config.status)
Guido van Rossumbadac731993-12-20 10:52:46 +000065
Guido van Rossumb6775db1994-08-01 11:34:53 +000066depend:
67 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
68 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
69
70.PRECIOUS: Makefile
71
72acceler.o: acceler.c
73grammar1.o: grammar1.c
74intrcheck.o: intrcheck.c
75listnode.o: listnode.c
76myreadline.o: myreadline.c
77node.o: node.c
78parser.o: parser.c
79parsetok.o: parsetok.c
80tokenizer.o: tokenizer.c
81bitset.o: bitset.c
82firstsets.o: firstsets.c
83grammar.o: grammar.c
84metagrammar.o: metagrammar.c
85pgen.o: pgen.c
86printgrammar.o: printgrammar.c
87pgenmain.o: pgenmain.c
Guido van Rossumbadac731993-12-20 10:52:46 +000088
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