1993-12-20 18:52:46 +08: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 ===
|
|
|
|
|
|
|
|
srcdir= @srcdir@
|
|
|
|
VPATH= @srcdir@
|
|
|
|
|
|
|
|
CC= @CC@
|
|
|
|
RANLIB= @RANLIB@
|
1994-08-01 19:34:53 +08:00
|
|
|
AR= @AR@
|
|
|
|
|
1993-12-24 18:36:57 +08:00
|
|
|
DEFS= @DEFS@
|
1993-12-20 18:52:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
# === Other things that are customizable but not by configure ===
|
|
|
|
|
1994-08-01 19:34:53 +08:00
|
|
|
INCLDIR= $(srcdir)/../Include
|
1994-08-23 21:38:57 +08:00
|
|
|
OPT= @OPT@
|
1994-08-01 19:34:53 +08:00
|
|
|
CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
|
1993-12-24 18:36:57 +08:00
|
|
|
|
1993-12-20 18:52:46 +08:00
|
|
|
MKDEP= mkdep
|
|
|
|
SHELL= /bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
# === Fixed definitions ===
|
|
|
|
|
1993-12-24 18:36:57 +08:00
|
|
|
PARSEROBJS= acceler.o grammar1.o \
|
|
|
|
intrcheck.o listnode.o myreadline.o node.o parser.o \
|
1993-12-20 18:52:46 +08:00
|
|
|
parsetok.o tokenizer.o bitset.o \
|
|
|
|
firstsets.o grammar.o metagrammar.o pgen.o \
|
|
|
|
printgrammar.o
|
|
|
|
|
|
|
|
PGENOBJS= pgenmain.o
|
|
|
|
|
1994-08-01 19:34:53 +08:00
|
|
|
OBJS= $(PGENOBJS) $(PARSEROBJS)
|
1993-12-20 18:52:46 +08:00
|
|
|
|
|
|
|
PGEN= pgen
|
|
|
|
|
|
|
|
LIB= libParser.a
|
|
|
|
|
|
|
|
|
|
|
|
# === Rules ===
|
|
|
|
|
|
|
|
all: $(LIB) $(PGEN)
|
|
|
|
|
|
|
|
$(LIB): $(PARSEROBJS)
|
1994-08-23 21:38:57 +08:00
|
|
|
-rm -f $(LIB)
|
1993-12-20 18:52:46 +08:00
|
|
|
$(AR) cr $(LIB) $(PARSEROBJS)
|
1993-12-24 18:36:57 +08:00
|
|
|
$(RANLIB) $(LIB)
|
1993-12-20 18:52:46 +08:00
|
|
|
|
|
|
|
$(PGEN): $(PGENOBJS) $(LIB)
|
|
|
|
$(CC) $(PGENOBJS) $(LIB) -o $(PGEN)
|
|
|
|
|
|
|
|
clean:
|
1993-12-24 18:36:57 +08:00
|
|
|
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej
|
1993-12-20 18:52:46 +08:00
|
|
|
|
|
|
|
clobber: clean
|
1993-12-24 18:36:57 +08:00
|
|
|
-rm -f $(PGEN) *.a tags TAGS
|
1993-12-20 18:52:46 +08:00
|
|
|
|
1994-08-01 19:34:53 +08:00
|
|
|
Makefile: $(srcdir)/Makefile.in ../config.status
|
|
|
|
(cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \
|
|
|
|
$(SHELL) config.status)
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
|
|
|
|
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
|
|
|
|
grammar.o: grammar.c
|
|
|
|
metagrammar.o: metagrammar.c
|
|
|
|
pgen.o: pgen.c
|
|
|
|
printgrammar.o: printgrammar.c
|
|
|
|
pgenmain.o: pgenmain.c
|
1993-12-20 18:52:46 +08: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
|