CC=gcc
CFLAGS=-O2 -Wall
LEX=flex -i
YACC=bison -y

all:		dataxfer.o globals.o rfcnnnn.o compression.o


clean:
		rm -f *~ *.bak *.o core


#####################################################
# Make rules
#

%.c:            %.flex
		$(LEX) $<
		mv -f lex.yy.c $@

%.tab.c:        %.y
		$(YACC) -d $<
		mv -f y.tab.c $@
		mv -f y.tab.h `basename $@ .c`.h
		if [ -r y.output ] ; then mv -f y.output `basename $@ .tab.c`.output ; fi

