Files
c 0cf2c6492f 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
2026-07-21 20:22:02 -07:00

66 lines
1.4 KiB
Makefile

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)