Skip to content

Commit

Permalink
change user lib source file name
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Oct 11, 2023
1 parent c3f370e commit e80f7cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions user/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ if(ANDROID)
endif()

set(SRCS
libkp.c
kpatch.c
)

add_library(
kp
libkpatch
STATIC
${SRCS}
)
Expand Down
8 changes: 4 additions & 4 deletions user/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion user/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <sys/stat.h>
#include <sys/types.h>

#include "libkp.h"
#include "kpatch.h"

#define SUPER_KEY_LEN 0x20

Expand Down

0 comments on commit e80f7cb

Please sign in to comment.