File: Makefile

package info (click to toggle)
libkqueue 2.3.1-1.1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 792 kB
  • sloc: ansic: 9,341; makefile: 68; perl: 22; sh: 7
file content (29 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)