        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
  SYS_LIBRARIES = -lXwchar
           SRCS = xanswer.c answer.c xexplanation.c explanation.c \
                  term_lex.c term_yacc.c term.c unparse_lisp.c
           OBJS = xanswer.o answer.o xexplanation.o explanation.o \
                  term_lex.o term_yacc.o term.o unparse_lisp.o
    CDEBUGFLAGS = -O
  LOCAL_LDFLAGS = -Bstatic
            LEX = flex
         LFLAGS = -8

ComplexProgramTarget(xanswer)

xexplanation.o : explanation.h
explanation.o : explanation.h

term_lex.c  : term_lex.l term_yacc.h term.h
        $(RM) term_lex.c
        $(LEX) $(LFLAGS) term_lex.l
        $(MV) lex.yy.c term_lex.c

term_yacc.h term_yacc.c: term_yacc.y
        $(RM) term_yacc.c
        $(YACC) $(YFLAGS) term_yacc.y
        $(MV) y.tab.c term_yacc.c

clean::
	rm -f term_lex.c term_yacc.c
