/* Copyright (C) 1989, Digital Equipment Corporation           */
/* All rights reserved.                                        */
/* See the file COPYRIGHT for a full description.              */

/* Last Modified On Wed Jul 18 01:53:07 1990 By muller         */

M3FLAGS = -D.ROOT/libs/misc/Interfaces
LIBS = .ROOT/libs/misc/libm3misc.a .ROOT/libs/$(UNIX_LIB)/libm3$(UNIX_LIB).a

source (hash.h)
source (yaccpar)

source (Parse.lex)
lex.yy.c: Parse.lex
	lex Parse.lex
source (Parse.yacc)

source (y.tab.c)
/* y.tab.c: Parse.yacc
	yacc -v Parse.yacc */

y.tab.o: lex.yy.c y.tab.c hash.h yaccpar
	$(CC) $(CFLAGS) -c -D$(TARGET) -DYYDEBUG=1 y.tab.c

module (Parse)
implementation (Main)

all:: m3pp
m3pp: Main.mo y.tab.o 
	$(M3) $(M3FLAGS) -o m3pp *.*o $(LIBS) -ll

source (m3pp.g-ml)
man_page (m3pp,1)

clean:: FRC
	-@/bin/rm -f m3pp

do_install (m3pp,$(BINDIR), 755)
