# # Build everything in directories... # # tailor this to taste, but must be ansi capable # With 'gcc', optimization can not be used on tcplogger and udplogger # # If you have not run fix-includes, you must use -traditional with # 'gcc'. If you are not sure, then use it. #CC=gcc -traditional -g # # For SunOS 5, use LIBS=-lsocket -lnsl # CC ?= cc LIBS = -L%%PREFIX%%/lib -lft -lz INCLUDES = -I%%PREFIX%%/include # # For Linux # #FLAGS= #LIBS=-lz #INCLUDES= # #------------------------------------------------------------------------ # VERSION=2.4 SRC=y.tab.c extract.c builder.c lex.c chario.c interp.c timesub.c timeval.c hosts.c OBJ=$(SRC:.c=.o) PRUNE='CVS' #CC = cc LIB=$(LIBS) CFLAGS+=$(INCLUDES) all: flow-extract flow-extract: $(OBJ) $(CC) $(CFLAGS) $(OBJ) $(LIB) -o flow-extract extract.o: version.h $(OBJ): y.tab.h y.tab.h:: grammar.y $(YACC) -d grammar.y y.tab.c: y.tab.h y.tab.o: y.tab.c clean: rm -f $(OBJ) flow-extract y.tab.c y.tab.h dist: clean (cd .. ; find flowextract-$(VERSION) -print | egrep -v $(PRUNE) | cpio -oc | gzip > flowextract-$(VERSION).cpio.gz && gpg --clearsign < flowextract-$(VERSION).cpio.gz > flowextract-$(VERSION).cpio.gz.sig )