1993-12-20 06:52:46 -04:00
|
|
|
# NOTE: Makefile.in is converted into Makefile by the configure script
|
|
|
|
# in the parent directory. Once configure has run, you can recreate
|
|
|
|
# the Makefile by running just config.status.
|
|
|
|
|
|
|
|
# === Variables set by config.stat ===
|
|
|
|
|
1997-07-19 16:39:57 -03:00
|
|
|
VERSION= @VERSION@
|
|
|
|
|
1993-12-20 06:52:46 -04:00
|
|
|
srcdir= @srcdir@
|
|
|
|
VPATH= @srcdir@
|
|
|
|
|
|
|
|
CC= @CC@
|
|
|
|
RANLIB= @RANLIB@
|
1994-08-01 08:34:53 -03:00
|
|
|
AR= @AR@
|
|
|
|
|
1993-12-24 06:36:57 -04:00
|
|
|
DEFS= @DEFS@
|
1998-04-09 16:10:38 -03:00
|
|
|
LIBS= @LIBS@
|
1993-12-20 06:52:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
# === Other things that are customizable but not by configure ===
|
|
|
|
|
1994-08-01 08:34:53 -03:00
|
|
|
INCLDIR= $(srcdir)/../Include
|
1994-08-23 10:38:57 -03:00
|
|
|
OPT= @OPT@
|
1994-08-01 08:34:53 -03:00
|
|
|
CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
|
1993-12-24 06:36:57 -04:00
|
|
|
|
1993-12-20 06:52:46 -04:00
|
|
|
MKDEP= mkdep
|
|
|
|
SHELL= /bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
# === Fixed definitions ===
|
|
|
|
|
1997-07-19 16:39:57 -03:00
|
|
|
POBJS= acceler.o grammar1.o \
|
|
|
|
listnode.o node.o parser.o \
|
1993-12-20 06:52:46 -04:00
|
|
|
parsetok.o tokenizer.o bitset.o \
|
1998-08-09 00:55:31 -03:00
|
|
|
metagrammar.o
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1998-10-07 19:51:56 -03:00
|
|
|
AROBJS= $(POBJS) myreadline.o
|
|
|
|
OBJS= $(AROBJS) intrcheck.o
|
|
|
|
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1997-07-19 16:39:57 -03:00
|
|
|
PGENMAIN= pgenmain.o
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1998-08-09 00:55:31 -03:00
|
|
|
PGOBJS= firstsets.o grammar.o pgen.o printgrammar.o
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1998-08-09 00:55:31 -03:00
|
|
|
PGENOBJS= $(PGENMAIN) $(POBJS) $(PGOBJS)
|
|
|
|
|
|
|
|
DOBJS= $(PGENMAIN) $(OBJS) $(PGOBJS)
|
1997-07-19 16:39:57 -03:00
|
|
|
|
|
|
|
PGEN= pgen
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1997-07-19 16:39:57 -03:00
|
|
|
LIBRARY= ../libpython$(VERSION).a
|
1993-12-20 06:52:46 -04:00
|
|
|
|
|
|
|
# === Rules ===
|
|
|
|
|
1997-07-19 16:39:57 -03:00
|
|
|
all: $(PGEN) $(OBJS)
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1997-07-19 16:39:57 -03:00
|
|
|
# This target is used by the master Makefile to add the objects to the library
|
|
|
|
add2lib: $(OBJS)
|
1998-10-07 19:51:56 -03:00
|
|
|
$(AR) cr $(LIBRARY) $(AROBJS)
|
|
|
|
if test ! -f ../Modules/hassignal; \
|
|
|
|
then echo adding intrcheck.o; $(AR) r $(LIBRARY) intrcheck.o; \
|
|
|
|
else echo leaving intrcheck.o out; fi
|
1997-07-19 16:39:57 -03:00
|
|
|
touch add2lib
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1997-07-19 16:39:57 -03:00
|
|
|
$(PGEN): $(PGENOBJS)
|
1998-04-09 16:10:38 -03:00
|
|
|
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
1993-12-20 06:52:46 -04:00
|
|
|
|
|
|
|
clean:
|
1997-07-19 16:39:57 -03:00
|
|
|
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
|
1993-12-20 06:52:46 -04:00
|
|
|
|
|
|
|
clobber: clean
|
1993-12-24 06:36:57 -04:00
|
|
|
-rm -f $(PGEN) *.a tags TAGS
|
1993-12-20 06:52:46 -04:00
|
|
|
|
1994-08-01 08:34:53 -03:00
|
|
|
Makefile: $(srcdir)/Makefile.in ../config.status
|
|
|
|
(cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \
|
|
|
|
$(SHELL) config.status)
|
|
|
|
|
|
|
|
depend:
|
1997-07-19 16:39:57 -03:00
|
|
|
$(MKDEP) $(CFLAGS) `echo $(DOBJS) | tr ' ' '\012' | \
|
1994-08-01 08:34:53 -03:00
|
|
|
sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
|
|
|
|
|
|
|
|
.PRECIOUS: Makefile
|
|
|
|
|
|
|
|
acceler.o: acceler.c
|
|
|
|
grammar1.o: grammar1.c
|
|
|
|
intrcheck.o: intrcheck.c
|
|
|
|
listnode.o: listnode.c
|
|
|
|
myreadline.o: myreadline.c
|
|
|
|
node.o: node.c
|
|
|
|
parser.o: parser.c
|
|
|
|
parsetok.o: parsetok.c
|
|
|
|
tokenizer.o: tokenizer.c
|
|
|
|
bitset.o: bitset.c
|
|
|
|
firstsets.o: firstsets.c
|
2000-08-31 02:11:48 -03:00
|
|
|
grammar.o: grammar.c assert.h ../Include/token.h ../Include/grammar.h
|
1994-08-01 08:34:53 -03:00
|
|
|
metagrammar.o: metagrammar.c
|
|
|
|
pgen.o: pgen.c
|
|
|
|
printgrammar.o: printgrammar.c
|
|
|
|
pgenmain.o: pgenmain.c
|
1993-12-20 06:52:46 -04:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
|
|
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
|
|
|
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|