SUIF_INTERNAL = defined
HEADERS = 
SRCS = pass.cpp scan.cpp parse.cpp
OBJ_FILES = pass.o scan.o parse.o
LIBS += -lsuifnodes -lsuifkernel -liokernel -lbasicnodes -lcfenodes -lcommon \
	-lsuifpasses -lesuifnodes

YACCFLAGS =

YACC_GENERATED_FILES = parse.cpp parse.h

LEX_GENERATED_FILES = scan.cpp

TARGET_LIB = est2s

include ${NCIHOME}/Makefile.std

scan.o : scan.cpp

scan.cpp : scan.l

parse.o : parse.cpp

# Used instead of .c rule

%.cpp : %.l
	$(LEX) $(LEXFLAGS) $<
	mv lex.yy.c $@

# Used instead of .c rule since parser must compile under C++
%.cpp : %.y
	$(YACC) $(YACCFLAGS) -d -o $@ $<
	mv $@.h $*.h
