blob: 01d14f2b0c5ce48b57a480bf054d1c0971af0d80 [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@
12
13
14# === Other things that are customizable but not by configure ===
15
16AR= ar
17MKDEP= mkdep
18SHELL= /bin/sh
19
20INCLDIR= $(srcdir)/../Py
21OPT= -g
22CFLAGS= $(OPT) -I$(INCLDIR)
23
24
25# === Fixed definitions ===
26
27PARSEROBJS= 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
33PGENOBJS= pgenmain.o
34
35PARSERSRCS= 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
41PGENSRCS= pgenmain.c
42
43PGEN= pgen
44
45LIB= libParser.a
46
47
48# === Rules ===
49
50all: $(LIB) $(PGEN)
51
52$(LIB): $(PARSEROBJS)
53 $(AR) cr $(LIB) $(PARSEROBJS)
54
55$(PGEN): $(PGENOBJS) $(LIB)
56 $(CC) $(PGENOBJS) $(LIB) -o $(PGEN)
57
58clean:
59 -rm -f $(PARSEROBJS) $(PGENOBJS)
60 -rm -f core *~ [@,#]* *.old *.orig *.rej
61
62clobber: clean
63 -rm -f $(PGEN) $(LIB) tags TAGS
64
65Makefile: Makefile.in ../config.status
66 (cd ..; $(SHELL) config.status)
67
68depend: $(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