run-them: go1 go2 go1: malloc-wrapper.so test-program # This is a C test MW_MALLOC_SIGNAL=1 MW_FREE_SIGNAL=1 LD_PRELOAD=./malloc-wrapper.so ./test-program go2: # This is a Python test MW_MALLOC_SIGNAL=1 MW_FREE_SIGNAL=1 LD_PRELOAD=./malloc-wrapper.so ./test-program2 2>&1 | ./find-wheat malloc-wrapper.so: malloc-wrapper.c gcc -std=c11 -pedantic -Wall -fPIC -shared -o malloc-wrapper.so malloc-wrapper.c -ldl install: malloc-wrapper.so ./install-file --file malloc-wrapper.so --directory /usr/local/lib/. clean: rm -f test-program malloc-wrapper.so