XCOMM $XFree86: mit/demos/xgc/Imakefile,v 2.0 1993/12/18 11:43:23 dawes Exp $
XCOMM $XConsortium: Imakefile,v 1.9 91/07/16 23:08:10 gildea Exp $
        DEFINES = 
           SRCS = dashlist.c planemask.c getfile.c tests.c text.c \
                  choice.c main.c interpret.c record.c testfrac.c
      OTHERSRCS = gram.y lex.l
#if i386Bsd || defined(LinuxArchitecture)
      LEXPIECES = lex.l2
#else
      LEXPIECES = lex.l1 lex.l2
#endif
           OBJS = dashlist.o planemask.o getfile.o tests.o text.o \
                  choice.o main.o interpret.o record.o testfrac.o \
                  gram.o lex.o
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(LEXLIB) $(XLIB)
        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  SYS_LIBRARIES = -lm
         YFLAGS = -d

ComplexProgramTarget(xgc)

InstallAppDefaults(Xgc)

lex.l: $(LEXPIECES)
	$(RM) lex.l
	cat $(LEXPIECES) > lex.l

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

clean::
	$(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c lex.l

depend:: lex.c gram.c
