mirror of
https://github.com/darlinghq/darling-libkqueue.git
synced 2024-11-26 21:20:38 +00:00
049431f845
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@293 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
30 lines
720 B
Makefile
30 lines
720 B
Makefile
CFLAGS=-I../../include -O0 -g
|
|
LDADD=-lpthread
|
|
PROGRAM=stresstest
|
|
SOURCES=main.c ../timer.c ../user.c ../kevent.c ../read.c ../vnode.c ../test.c
|
|
|
|
all: $(PROGRAM)
|
|
|
|
$(PROGRAM): $(SOURCES)
|
|
$(CC) -o $(PROGRAM) $(CFLAGS) $(SOURCES) ../../libkqueue.a $(LDADD)
|
|
|
|
check: $(PROGRAM)
|
|
@echo "ERROR: The stresstest is currently not usable" ; false
|
|
rm -f core 2>/dev/null
|
|
ulimit -c 999999 ; ./$(PROGRAM) || true
|
|
if [ -f core ] ; then gdb ./$(PROGRAM) core ; fi
|
|
|
|
valgrind: $(PROGRAM)
|
|
valgrind --tool=memcheck --leak-check=full --show-reachable=yes \
|
|
--num-callers=20 --track-fds=yes ./$(PROGRAM)
|
|
|
|
clean:
|
|
rm -f $(PROGRAM) core tags *.o
|
|
|
|
edit:
|
|
ctags $(SOURCES)
|
|
$(EDITOR) $(SOURCES)
|
|
|
|
distclean: clean
|
|
rm -f $(PROGRAM)
|