CFLAGS=-std=c99 -Os -g LDFLAGS=-g CC=musl-gcc all: wrap.so hello hello: hello.o wrap.o: head.h func.h wrap.so: wrap.o $(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt clean: rm -f wrap.so hello *.o test: all LD_PRELOAD=./wrap.so ./hello