# Makefile for DEC trace parsing.
# (ftp://ftp.digital.com/pub/DEC/traces/proxy/webtraces.html)
# 
# Taken from Alex Rousskov's originial code.

DEFINES = 
INCLUDES = -I/usr/local/include/tcl8.0

CFLAGS = -g  $(INCLUDES) $(DEFINES)
#CFLAGS = -O3 $(INCLUDES) $(DEFINES)

CC  = g++

OBJC = proxytrace.cc formsquid.cc formtxt.cc endian.cc \
	proxytrace2any.cc tr-stat.cc
OBJO = $(OBJC:.c=.o)

tr-stat: $(OBJO)
	$(CC) $(CFLAGS) -o $@ $(OBJO) -lm -L/usr/local/lib/tcl8.0 -ltcl80

clean: 
	rm -f *.o *~ tr-stat core

proxytrace2any.o: proxytrace.h proxytrace2any.cc
formsquid.o: proxytrace.h formsquid.cc
formtxt.o: proxytrace.h formtxt.cc
endian.o: proxytrace.h endian.h endian.cc
