diff options
author | johannst <johannst@users.noreply.github.com> | 2024-04-06 21:17:19 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-04-06 21:17:19 +0000 |
commit | 92fc0e8e46352a593c3ce7f87292ee1c4ee4c4e4 (patch) | |
tree | 6e8192180aed620c4d9b93895a7532df1ec9aca4 /development/ldso/deepbind/Makefile | |
parent | 63d71256f83e5da6479d90d1bbdaf17ad6d31f02 (diff) | |
download | notes-92fc0e8e46352a593c3ce7f87292ee1c4ee4c4e4.tar.gz notes-92fc0e8e46352a593c3ce7f87292ee1c4ee4c4e4.zip |
deploy: 6d2292f2431ec9405b8789c28c81e8e711c15b2d
Diffstat (limited to 'development/ldso/deepbind/Makefile')
-rw-r--r-- | development/ldso/deepbind/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/development/ldso/deepbind/Makefile b/development/ldso/deepbind/Makefile new file mode 100644 index 0000000..6fc4eb1 --- /dev/null +++ b/development/ldso/deepbind/Makefile @@ -0,0 +1,19 @@ +run: build + LD_PRELOAD=./libprel.so ./main + +debug: build + #LD_DEBUG_OUTPUT=ldso + LD_DEBUG=scopes,symbols,bindings LD_PRELOAD=./libprel.so ./main + +build: + gcc -g -o libprel.so lib.c -DNAME=\"prel\" -fPIC -shared + gcc -g -o libdeep.so lib.c -DNAME=\"deep\" -fPIC -shared + gcc -g -o libnodp.so lib.c -DNAME=\"nodp\" -fPIC -shared + gcc -g -o liblink.so lib.c -DNAME=\"link\" -fPIC -shared + gcc -g -o main main.c ./liblink.so -ldl + +fmt: + clang-format -i *.c + +clean: + $(RM) *.so main |