X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=a78a1ff3c74b0af2f9d8ab72c3347e4a512541b6;hb=2694aa91c4849c393dd6d17bba260a86f696fc47;hp=a1de594740f4f5376336453390253d9bf501edb2;hpb=a15934c764818b925638f706ad90a05bb17f1c90;p=ldtrace diff --git a/Makefile b/Makefile index a1de594..a78a1ff 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,15 @@ CFLAGS=-std=c99 -Os -g +#CFLAGS+=-fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables 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 clean: - rm -f wrap.so hello *.o + rm -f wrap.so hello stress *.o test: all LD_PRELOAD=./wrap.so ./hello + LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l