blob: f160c425be41cd89e7329adf19e4da43a0cbddeb [file] [log] [blame]
Sjoerd Mullender59bb0802000-08-17 11:38:18 +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
Fred Drake0cdfc922000-09-28 20:53:39 +00005# === Variables set by config.status ===
Sjoerd Mullender59bb0802000-08-17 11:38:18 +00006
7VERSION= @VERSION@
8
9srcdir= @srcdir@
10VPATH= @srcdir@
11
12CC= @CC@
13RANLIB= @RANLIB@
14AR= @AR@
15
16DEFS= @DEFS@
17LIBS= @LIBS@
18
19
20# === Fixed definitions ===
21
22TOP= ..
23PGENDIR= $(TOP)/Parser
24PGEN= $(PGENDIR)/pgen
25DESTH= $(srcdir)/$(TOP)/Include/graminit.h
26DESTC= $(srcdir)/$(TOP)/Python/graminit.c
27
28all: install
29
30# This target is used by the master Makefile to add the objects to the library
31add2lib:
32
33install: $(DESTH) $(DESTC)
34
35depend:
36
37$(DESTH): graminit.h
38 cp graminit.h $(DESTH)
39
40$(DESTC): graminit.c
41 cp graminit.c $(DESTC)
42
43graminit.c graminit.h: $(PGEN) Grammar
44 $(PGEN) $(srcdir)/Grammar
45
46$(PGEN):
47 cd $(PGENDIR); $(MAKE) pgen
48
49clean:
50 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
51 -rm -f graminit.[ch]
52
53clobber: clean
54 -rm -f tags TAGS