mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-25 02:29:49 +01:00
refactor: libciderra1n support (#764)
* refactor refactor: remove wdi refactor: move openra1n to its own library refactor: move everything standalone file to src root * submodule * okay these shouldnt of been included * remove * readd * fix openra1n libusb * liteusb for ra1ncovery * fix action * token * whatever lwra bw apwxidix * I knew this was gonna happen * fix mac build * what if this doesnt work * okay bro * lzma resources * rename * use idevice++, fix multiple devices, enter recovery * whatever * fix * --force-enable-ssv * improve exploit stuff, mirror tui logic to gui also cooool logging for libopenra1n * fix idevice windows build * lets not be fancy * new idevice patch * easier to read * lets hope this action works! * remove useless ifs * not required for non tui * PLEASE COMPILE * gsed lmao * this might work idk * whatever bro * ah * amd fix * fix ts * fix * licensing * update paleinfo * LETS NOT do that * forgot a file
This commit is contained in:
128 files changed
+12054
-3114
No files matched your search
@@ -0,0 +1,65 @@
|
||||
RM ?= rm
|
||||
MKDIR ?= mkdir
|
||||
CP ?= cp
|
||||
CC ?= cc
|
||||
AR ?= ar
|
||||
ARFLAGS ?= rcs
|
||||
XXD ?= xxd
|
||||
SED ?= sed
|
||||
|
||||
BUILD := build
|
||||
SRC := src
|
||||
INCLUDE := include
|
||||
|
||||
OBJDIR = $(SRC)/build
|
||||
LIBDIR := $(BUILD)/lib
|
||||
INCDIR := $(BUILD)/include
|
||||
|
||||
NAME := openra1n
|
||||
LIBNAME := lib$(NAME).a
|
||||
|
||||
CFLAGS += -I$(INCLUDE) -I$(SRC) -I$(SRC)/gen
|
||||
|
||||
SRCS := $(shell find $(SRC) -name '*.c')
|
||||
OBJS := $(patsubst $(SRC)/%.c,$(OBJDIR)/%.o,$(SRCS))
|
||||
|
||||
.PHONY: all payloads library headers clean
|
||||
|
||||
all: payloads library headers
|
||||
|
||||
payloads:
|
||||
$(MKDIR) -p $(INCLUDE)/gen/payloads
|
||||
|
||||
@for file in payloads/*; do \
|
||||
name=$$(basename "$$file"); \
|
||||
name=$${name%.*}; \
|
||||
echo " XXD $$file"; \
|
||||
echo "#pragma once" > "$(INCLUDE)/gen/payloads/$$name.h"; \
|
||||
$(XXD) -i "$$file" \
|
||||
| $(SED) 's/unsigned char/static const unsigned char/g' \
|
||||
| $(SED) 's/unsigned int/static const size_t/g' \
|
||||
>> "$(INCLUDE)/gen/payloads/$$name.h"; \
|
||||
done
|
||||
|
||||
$(OBJDIR)/%.o: $(SRC)/%.c
|
||||
@$(MKDIR) -p $(dir $@)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
library: $(OBJS)
|
||||
$(MKDIR) -p $(LIBDIR)/${NAME}
|
||||
$(AR) $(ARFLAGS) $(LIBDIR)/${NAME}/$(LIBNAME) $(OBJS)
|
||||
|
||||
headers:
|
||||
$(MKDIR) -p $(INCDIR)/${NAME}
|
||||
$(CP) $(INCLUDE)/checkm8.h \
|
||||
$(INCLUDE)/shim.h \
|
||||
$(INCLUDE)/usb_iokit.h \
|
||||
$(INCLUDE)/usb_libusb.h \
|
||||
$(INCLUDE)/dfu.h \
|
||||
$(INCLUDE)/payload.h \
|
||||
$(INCLUDE)/utils.h \
|
||||
$(INCDIR)/${NAME}/
|
||||
|
||||
clean:
|
||||
$(RM) -rf $(BUILD)
|
||||
$(RM) -rf $(SRC)/$(BUILD)
|
||||
Reference in new issue
Block a user