LOCAL_LIBRARIES = $(XLIB)
SRCS = parse.y scan.l output.c main.c
OBJS = parse.o scan.o output.o main.o
SYS_LIBRARIES = -ll
DEFINES = -DCLEARBITS

ComplexProgramTarget(xfed)


scan.o:		y.tab.h defs.h scan.l
		rm -f lex.yy.c
		lex scan.l
		$(CC) $(CFLAGS) -c lex.yy.c
		mv lex.yy.o scan.o

y.tab.h:	parse.y

y.tab.c:	parse.y
		-rm -f y.tab.c
		yacc -d parse.y

parse.o:	defs.h y.tab.c
		$(CC) $(CFLAGS) -c y.tab.c
		mv y.tab.o parse.o

main.o:		defs.h

output.o:	defs.h

clean::
		rm -f lex.yy.c y.tab.c y.tab.h
