CC = gcc -O3 -DCOLLECT_MEM_STATS=0
LIBS = -lpthread

all : trace2wl trace_dump trace_run

trace2wl : trace2wl.c mtrace.h
	$(CC) trace2wl.c -o trace2wl $(LIBS)

trace_dump : trace_dump.c mtrace.h
	$(CC) trace_dump.c -o trace_dump $(LIBS)

trace_run : trace_run.c mtrace.h
	$(CC) trace_run.c -o trace_run $(LIBS)

clean :
	rm -f trace2wl trace_dump trace_run

tarball :
	tar cvfz dj-trace-tools.tar.gz Makefile trace2wl.c trace_dump.c trace_run.c mtrace.h mtrace.out.sample
