2 #CFLAGS+=-fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables
5 all: wrap.so hello stress wrapasm.so
10 $(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lpthread -lutil -lcrypt
14 wrapasm.so: func.o wrap_help.o
15 $(CC) $(LDFLAGS) -shared -o $@ $^ -ldl -lm -lrt -lpthread -lutil -lcrypt
17 rm -f wrap.so hello stress *.o wrapasm.so
19 LD_PRELOAD=./wrap.so ./hello
20 LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l