From e80f7cb2e55b41932e9e8434a06b987633e0f1e8 Mon Sep 17 00:00:00 2001 From: bmax Date: Wed, 11 Oct 2023 09:53:50 +0800 Subject: [PATCH] change user lib source file name --- user/CMakeLists.txt | 4 ++-- user/Makefile | 8 ++++---- user/main.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/user/CMakeLists.txt b/user/CMakeLists.txt index ec307ecf..4c938c61 100644 --- a/user/CMakeLists.txt +++ b/user/CMakeLists.txt @@ -16,11 +16,11 @@ if(ANDROID) endif() set(SRCS - libkp.c + kpatch.c ) add_library( - kp + libkpatch STATIC ${SRCS} ) diff --git a/user/Makefile b/user/Makefile index 408fa93b..dcd0e415 100644 --- a/user/Makefile +++ b/user/Makefile @@ -5,14 +5,14 @@ ifdef ANDROID CFLAGS += -DANDROID endif -objs := libkp.o +objs := kpatch.o -all: hdr libkp.a kpatch +all: hdr libkpatch.a kpatch kpatch: main.o ${objs} ${CC} -o $@ $^ -libkp.a: ${objs} +libkpatch.a: ${objs} ${AR} rcs $@ $^ %.o : %.c @@ -27,5 +27,5 @@ clean: rm -rf build rm -rf uapi rm -f kpatch - rm -f libkp.a + rm -f libkpatch.a find . -name "*.o" | xargs rm -f \ No newline at end of file diff --git a/user/main.c b/user/main.c index d5176784..c9009b33 100644 --- a/user/main.c +++ b/user/main.c @@ -5,7 +5,7 @@ #include #include -#include "libkp.h" +#include "kpatch.h" #define SUPER_KEY_LEN 0x20