mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02:00
fixes
This commit is contained in:
1 parent
3ea3ea0ce9
commit
84403cfce9
3 files changed
+29
-6
No files matched your search
+11
-3
@@ -1,17 +1,25 @@
|
||||
all: palera1n
|
||||
|
||||
OBJECTS = main.o dfuhelper.o lockdown_helper.o devhelper.o exec_checkra1n.o checkra1n.o
|
||||
LIPO = lipo
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
checkra1n: checkra1n-macos
|
||||
ifneq (,$(findstring arm64, $(CFLAGS)))
|
||||
$(LIPO) -thin arm64 -output checkra1n checkra1n-macos
|
||||
else
|
||||
$(LIPO) -thin x86_64 -output checkra1n checkra1n-macos
|
||||
endif
|
||||
|
||||
checkra1n.c: checkra1n
|
||||
xxd -iC checkra1n > checkra1n.c
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
|
||||
palera1n: $(OBJECTS)
|
||||
$(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o palera1n
|
||||
|
||||
clean:
|
||||
rm -f *.o palera1n
|
||||
rm -f *.o palera1n checkra1n
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in new issue
Block a user