add strcmp stress test to make test
[ldtrace] / Makefile
1 CFLAGS=-std=c99 -Os -g
2 LDFLAGS=-g
3 CC=musl-gcc
4 all: wrap.so hello stress
5 hello: hello.o
6 stress: stress.o
7 wrap.o: head.h func.h
8 wrap.so: wrap.o
9         $(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt
10 clean:
11         rm -f wrap.so hello *.o
12 test: all
13         LD_PRELOAD=./wrap.so ./hello
14         LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l