CC?=	gcc
CFLAGS+=	-I../src -I../include -O2\
		-D_VERSION=\"3-STABLE\" \
		-pipe -DYY_NO_UNPUT -g -I.. -Iinclude/ -I. \
		-Wall
OBJS=	dev_mem_ops.o trunc.o y.tab.o bstream.o icmp_print.o ipex.o link_print.o proc_kvm.o \
	tcp_print.o udp_print.o tcp_session.o dump_bpf.o \
	lex.time_parse.o print-ascii.o signals.o time.o util.o

all:	ipex

ipex:	lexer $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)

lexer:
	lex -Ptime_parse -i token.l
	yacc -p time_parse -d grammar.y

clean:
	rm -f *.o ipex version.h version config.h Makefile

install:
	cp ipex $(prefix)/bin
	cp doc/ipex.1.gz $(prefix)/man/man1/
 


syntax highlighted by Code2HTML, v. 0.9.1