projects
/
ldtrace
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a1de594740f4f5376336453390253d9bf501edb2
[ldtrace]
/
Makefile
1
CFLAGS=-std=c99 -Os -g
2
LDFLAGS=-g
3
CC=musl-gcc
4
all: wrap.so hello
5
hello: hello.o
6
wrap.o: head.h func.h
7
wrap.so: wrap.o
8
$(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt
9
clean:
10
rm -f wrap.so hello *.o
11
test: all
12
LD_PRELOAD=./wrap.so ./hello