CFLAGS=-std=c99 -Os -g
LDFLAGS=-g
CC=musl-gcc
-all: wrap.so hello
+all: wrap.so hello stress
hello: hello.o
+stress: stress.o
wrap.o: head.h func.h
wrap.so: wrap.o
$(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt
rm -f wrap.so hello *.o
test: all
LD_PRELOAD=./wrap.so ./hello
+ LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l