2010-02-06 01:43:17 +00:00
|
|
|
CFLAGS=-I../../include -O0 -g
|
2010-01-31 22:05:44 +00:00
|
|
|
LDADD=-lpthread
|
|
|
|
PROGRAM=stresstest
|
2010-02-03 02:52:44 +00:00
|
|
|
SOURCES=main.c ../timer.c ../user.c ../kevent.c ../read.c ../vnode.c ../test.c
|
2010-01-31 22:05:44 +00:00
|
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
|
|
|
|
$(PROGRAM): $(SOURCES)
|
|
|
|
$(CC) -o $(PROGRAM) $(CFLAGS) $(SOURCES) ../../libkqueue.a $(LDADD)
|
|
|
|
|
|
|
|
check: $(PROGRAM)
|
2010-08-08 04:59:54 +00:00
|
|
|
@echo "ERROR: The stresstest is currently not usable" ; false
|
2010-02-06 01:43:17 +00:00
|
|
|
rm -f core 2>/dev/null
|
|
|
|
ulimit -c 999999 ; ./$(PROGRAM) || true
|
|
|
|
if [ -f core ] ; then gdb ./$(PROGRAM) core ; fi
|
2010-01-31 22:05:44 +00:00
|
|
|
|
|
|
|
valgrind: $(PROGRAM)
|
|
|
|
valgrind --tool=memcheck --leak-check=full --show-reachable=yes \
|
|
|
|
--num-callers=20 --track-fds=yes ./$(PROGRAM)
|
|
|
|
|
|
|
|
clean:
|
2010-02-10 03:06:47 +00:00
|
|
|
rm -f $(PROGRAM) core tags *.o
|
2010-01-31 22:05:44 +00:00
|
|
|
|
2010-01-31 22:26:05 +00:00
|
|
|
edit:
|
|
|
|
ctags $(SOURCES)
|
|
|
|
$(EDITOR) $(SOURCES)
|
|
|
|
|
2010-01-31 22:05:44 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f $(PROGRAM)
|