This commit is contained in:
Nick Chan committed 2023-01-16 17:53:38 +08:00
1 parent 3ea3ea0ce9
commit 84403cfce9
3 files changed
+29 -6

No files matched your search

+11 -3
View File
@@ -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