From 9e22ec98f4132300301d32f033b2c4d6e4ff5c1d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 Nov 2023 12:55:28 -0500 Subject: add libung.so for LD_PRELOAD injection --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ebfe963e..dcfed103 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ BASE_CFLAGS=-g -Wall -Wextra -Werror -nostdinc -fno-builtin -fno-stack-protector OBJDIR=obj SRCDIR=src -all: +all: libung.so include mk/all.mk @@ -20,6 +20,9 @@ newdeps: cleandeps printf '.POSIX:\n\nall:\n\n' > mk/deps.mk for i in $$(find src -name \*.c); do sh mk/deps.sh $$i; done +libung.so: libc.a libm.a + $(CC) -o libung.so -shared obj/*.o + deps: $(MAKE) -f mk/deps.mk -- cgit v1.2.1